repl.it
@MaximTarna/

Y8 lesson 2 prog 1

Python

ahahahhahahahha

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
while True:
 month=input("To know how many days are in each month , type in a month: ")

 if month == "February":
  print("28 days , if it is a leap year it will be 29")
 elif month == "January":
  print("31 days")
 elif month == "March":
  print("31 days")
 elif month == "April":
  print("30 days")
 elif month == "May":
  print("31 days")
 elif month == "June":
  print("30 days")
 elif month == "July":
  print("31 days")
 elif month == "August":
  print("31 days")
 elif month == "September":
  print("30 days")
 elif month == "October":
  print("31 days")
 elif month == "November":
  print("30 days") 
 elif month == "December":
  print("31 days")
 else:
  print("1.Please enter a month.2. PLease enter the month with a capital letter! ")        
input=()