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 ?

7th Jul 2022, 5:41 PM
Rana
6 odpowiedzi
+ 6
Rana , -> we need to know what python tutorial you are talking about -> please mention the exercise name / number -> and of course we need to see your attempt
7th Jul 2022, 6:02 PM
Lothar
Lothar - avatar
+ 2
Rana You have to use the input function and take integer input
7th Jul 2022, 6:50 PM
Chris Coder
Chris Coder - avatar
+ 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.
7th Jul 2022, 10:35 PM
Chris Coder
Chris Coder - avatar
+ 2
Great!! thank a lot. and sorry for bothering you. have great day
8th Jul 2022, 12:26 AM
Rana
+ 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.
7th Jul 2022, 6:11 PM
Rana
+ 1
I didn't git it, Can you please tell me how to do it ? it's my first time in python.
7th Jul 2022, 10:17 PM
Rana