repl.it
@SakuraKimiko/

fun practice

Python 2.7

No description

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
import random

ranum=random.randint(10,50)

while True:
  name = input ("What is your name?:").string().title()
  number=int(input ("Enter any number of your choice between 10 and 50:"))
  print("Ranum=",ranum)
  

  if number < ranum:
    print ("Random Won")

  elif number == ranum:
    print ("DRAW")

  else:
    print("YAY" ,(name),"Won (FINALLY!!)")