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

7 lines
132 B
Python
Raw Permalink Normal View History

2021-05-28 20:38:55 +00:00
name = input('What is your name?')
2021-07-16 16:25:04 +00:00
if (str.lower(name) == 'newt'):
2021-05-28 20:38:55 +00:00
print('You\'re cool!')
else:
2021-07-16 16:25:04 +00:00
print('Nice to meet you!')