embedded system,Arduino,Raspberry pi,ARM7,MM32,STM32,PIC and Python,Django,Datascience and web development
Wednesday, June 19, 2019
if elif and else loop in python
s = input ("Input your name: ")
if s == "Tom":
print("Hello ", s)
elif s == "Carmen":
print("I'm so glad to see you ", s)
elif s == "Sonia":
print("I didn't expect you ",s)
else:
print("Hello unknown")
No comments:
Post a Comment