Write a Python program to perform an action if a condition is true. Given a variable name, if the value is 1, display the string “First day of a Month!” and do nothing if the value is not equa

Write a Python program to perform an action if a condition is true.
Given a variable name, if the value is 1, display the string “First day of a Month!” and do nothing if the value is not equa

1
2
3
4
n=1
if n == 1:
   print("\nFirst day of a Month!")
print()

Final output

Leave a Comment