repl.it
@Tom_Becks07/

Q20 Homework

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
def divbythree():
  n=input("Enter a random number between 1 and 20 : ")
  if n>0 and n<=20:
    n=n-3
    if n%3==0:
      print("number is divisible by 3")
    else:
      print("number is not divisible by 3")
  else:
    print("This number is not between 1 and 20")
    divbythree()
divbythree()
Fetching token
?