Professional Documents
Culture Documents
Python Coding
Python Coding
”)
print(greeting+name)
if game==”fortnite”:
print(“SAME!!”)
else:
print(game+”is a good game but I prefer fortnite”)
if weather==”raining”:
print(“Take an umbrella”)
elif weather==”cold”:
print(“Take a coat!”)
elif weather==”sunny”:
print(“Take sunglasses”)
else:
print(“Have a good day, whatever the weather!”)
school=input(“How is school?:)
if school==”good”:
print(“good good”)
elif school==”bad”:
print(“oh no”)
else:
print(“cool”)
total=main+juice+fruit