repl.it
@MATTHEWBECHTEL/

$iskejskekd

Python

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
Number = int(input("Enter a number"))
step2 = print("now double your number", Number)
step3 = int(input(step2))
if step3 == Number * 2:
  step4 = int(input("Now add 4"))
else:
  print("You are incorrect, please try again")

if step4 == step3 + 4:
  step5 = int(input("Now halve your number"))
else:
  print("You are incorect, please try again")

if step5 == step4 / 2:
  step6 = int(
input("Now substract the number you have now from your first number",
Number))
else:
  print("You are incorrect, please try again")

if step6 == step5 - Number:
  print("Your number is 2")
else:
  print("You are incorrect, please try again")