the-honk/school/gcse/year 9/python challenges/6 - Comparing names.py

7 lines
132 B
Python
Raw Normal View History

2024-10-09 17:02:27 +00:00
name = input('What is your name?')
2024-10-09 17:02:29 +00:00
if (str.lower(name) == 'newt'):
2024-10-09 17:02:27 +00:00
print('You\'re cool!')
else:
2024-10-09 17:02:29 +00:00
print('Nice to meet you!')