File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ # creating our function (hello)
2+ def hello ():
3+ print ("hello, world" )
4+
5+ #printing our function
6+ hello ()
Original file line number Diff line number Diff line change 1+ age = int (input ("What is your age: " ))
2+ if age <= 18 :
3+ print ("You are too small to drive" )
4+ elif 70 < age :
5+ print ("You are too old to drive" )
6+ else :
7+ print ("You can drive" )
Original file line number Diff line number Diff line change 1+ day = int (input ("Enter a number to guess the day: " ))
2+ match day :
3+ case (1 ):
4+ print ("Monday" )
5+ case (2 ):
6+ print ("Tuesday" )
7+ case (3 ):
8+ print ("Wednesday" )
9+ case (4 ):
10+ print ("Thursday" )
11+ case (5 ):
12+ print ("Friday" )
13+ case (6 ):
14+ print ("Saturday" )
15+ case (7 ):
16+ print ("Sunday" )
17+ case _:
18+ print ("there are only 7 days" )
You can’t perform that action at this time.
0 commit comments