これは特定のプログラム用ではない数行のコードを練習しているだけですが、私を悩ませているのは、印刷の横に入力カーソルを表示したいのですが、同時に変数を定義する必要があることですあなたe
がe
できないのと同じ行です4
。これが私のコードです:
a = int(input("Give me a Number: "))
b = int(input("Give me another number: "))
c = b + a
def none():
pass
e = none()
print("the sum of"), a, ("and"), b, ("is"), c
d = int(input("Please Insert your age here: "))
if d < 18:
print("Sorry you must be 18 years or older to enter this site")
else:
print("Welcome to www.example.com")
print("What is 2+2: "), e == int(input("")),
if e == 4:
print("good Job!")
else:
print("sorry no")