Python 11, Comparison, ifelifels

 # #Comparison

# a : int = 1
# b : int = 2
# print(a<b)
# print(a<=b)
# print(a==b)
# print(a!=b)


#ifelifelse

user_input : str = 'asdfasd'

if user_input == 'hello':
    print('Bot: Hello!')
elif user_input == 'how are you?':
    print('Bot:  Good, how about you?')
else:
    print('sorry i did not understand that')

0 Response to "Python 11, Comparison, ifelifels"

Posting Komentar