@BenTerry/

Number Guessing Game-5

Python

this repl is for the absolute mad lads or the road men of the 19th century

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
firstname1 = input("What is your first name? ")
surname1 = input("What is your surname? ")
userID1 = firstname1[0]
userID2 = surname1[0]
userID3 = surname1[-1:]
print(userID1,userID2,userID3)
num1 = input(" Im thinking of a number between 0 and 9. Guess my number? ")
import random
num2 = random.randint(0, 9)
print(num2)
if num1 = num2
  print("You Guessed my number")
else
  print("You didnt guess my number")                                            12