Syllabus
https://vtu.ac.in/pdf/2022syll/BPLCK105B.pdf
Use for Shell Program: Python Shell
Visualize the python code With AI Support: AIPYTHON
Self Learning Through Execution: Python_Codes
1 #write python code for rain and umbrella
is_raining = input("Is it raining? (yes/no): ").lower()
if is_raining == "no":
print("You can go outside!")
elif is_raining == "yes":
has_umbrella = input("Do you have an umbrella? (yes/no): ").lower()
if has_umbrella == "yes":
print("You can go outside with your umbrella!")
else:
print("It's better to wait until the rain stops.")
else:
print("Invalid input. Please answer with 'yes' or 'no'.")
PPTs
Notes Mod 1 to 4: Mod1234
Book1: Click
Book2: Click
No comments:
Post a Comment