0
have problem help me please
When I do the second project code lesson (python) I did it correctly but it shouldn't appear below each other. Can someone tell me how separat them ?
6 Answers
+ 2
Rana
You have to use the input function and take integer input
+ 2
Your code is almost correct however the app wants to input the variables for you. So you have to use the input function as an integer to take input.
What is input function?
input()
How to input an integer
int(input())
So:
num = int(input())
Do the same with your x and y variables.
+ 2
Great!! thank a lot. and sorry for bothering you. have great day
+ 1
I'm talking about (python core) > string and variables > code project.
My answer is
x = 6
y = 3
print(x+y)
which give me the right answer for first case, but when i did the other case it become wrong cause they should be separated.
+ 1
I didn't git it, Can you please tell me how to do it ?
it's my first time in python.