Ask coding questions

← Back to all posts
hello
alimohamed6 (0)

hello im a new guy into this website im trying to lear how to code ive only tried it a couple of times yet it was so fun but im still a noob if you have any advice or anything that would help me please let me know

Comments
hotnewtop
RYANTADIPARTHI (6019)

Solution

in python, to ask questions, use input. try this code.

number1 = input('enter number1 : ')
number2 = input('enter number2 : ')
answer = number1 * number2
print(number1, "*", number2, "=", answer)

like that.
That should work

ia13ru (43)

If you want to get a user's input, use number1 = int(input("Insert text here")).