Skip to content
Open

Ex1 #291

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/ex1.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,30 @@
#
# return 0;
# }



def main():

week = int(input("Enter week number(1-7): ")) #casting int/input

if week == 1:
print("Monday")
elif week == 2:
print("Tuesday")
elif week == 3:
print("Wedsnesday")
elif week == 4:
print("thrusday")
elif week == 5:
print("Friday")
elif week == 6:
print("Saturday")
elif week == 7:
print("Sunday")
else:
print("Invalid input! Please enter week number between 1-7.")


if __name__ == "__main__":
main()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hai caricato il file prov1.py, rimuovilo

Empty file added src/prov1.py
Empty file.
Loading