0

I don't know how to solve the 17 code project

I don't know how to do the 17 code project. All the exercices of this test are too hard for me. Can someone help me please?

26th Jan 2022, 2:45 PM
Titi_2402
Titi_2402 - avatar
9 Respuestas
+ 3
ㅤㅤㅤ 😲👍
27th Jan 2022, 3:03 AM
Rishi
Rishi - avatar
+ 2
Write a program to take two integers as input and output their sum. Sample Input: 2 8 Sample Output: 10 This? Take two inputs (as integers) And use '+' for adding them And finally use 'print' to output the sum
26th Jan 2022, 2:57 PM
NEZ
NEZ - avatar
+ 1
Titi_2402 for taking input we use input and if you want to take input as integer then you have to write like this: x=int(input()) (for integers) And if you write x=input() (for strings) It will be for to take input as strings. And there is one more... x=float(input()) This if for taking decimals like 3.4873 or 3.72 and if you will input a integer as input in float(input()) and will print it like: print(x)... ...it will be like x.0 for example you will give 4 as input it will print 4.0 (as float).
26th Jan 2022, 4:43 PM
NEZ
NEZ - avatar
+ 1
ㅤㅤㅤ who are you and what's your name? Why are you invisible? 🤔
27th Jan 2022, 2:30 AM
Rishi
Rishi - avatar
+ 1
Hi Rishi, I am NEZ (as you can see after opening my profile), i am invisible cuz of some reasons but will be changing my name to 'NEZ' again soon...😁
27th Jan 2022, 2:38 AM
NEZ
NEZ - avatar
0
Oh yeah OK. Thanks you. Mmmh I just a a problem because I don't understand the difference between int() and input() and what does this things mean. And string also. I know it's in the first lessons but I don't know why I don't understand 😅
26th Jan 2022, 3:47 PM
Titi_2402
Titi_2402 - avatar
0
Ohh! How lucky to have people like you who gladly respond to messages👍🔥😁. Thank you very much ! And just also have an other question. Strings mean this things " or it means an other thing that I don't understand 😅?
26th Jan 2022, 7:14 PM
Titi_2402
Titi_2402 - avatar
0
Oooh thank you so much! 👍
27th Jan 2022, 5:27 AM
Titi_2402
Titi_2402 - avatar