Skip to content
Open
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
22 changes: 22 additions & 0 deletions Programs/busgame.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
print("Type 'help' in the command line to briefly understand the game")
command=""
while True:
command=input(">").lower()
if command =="start":
print("Bus started, ready to go ------> |----------|")
print(" | | ")
print(" |----------| ")
print(" o o o o ")
elif command=="stop":
print("Bus stopped, |----------|")
print(" | | ")
print(" |----------| ")
print(" o o o o ")
elif command=="help":
print("start=to start the Bus,\nstop=to stop the Bus,\nquit=to quit the game.")
elif command=="quit":
print("Thanks for playing,We hope you return back here soon.")
break
else:

print("Sorry,i didn't understand ...\nPLEASE TRY AGAIN.")
3 changes: 3 additions & 0 deletions Programs/farenhitetocelsiusconvertor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
f=float(input("enter the temperatur in fahrenhite scale = "))
c=(f-32)*5.0/9
print ("celcius scale",c)