0
When the input consists of numbers and strings should I put quotation marks 🤔
26 Respuestas
+ 5
Yes since it's a string it has to be in quotation marks.
+ 4
Which programming language? Please give an example input and explain what you want to do with the input.
+ 2
input is like this:
my_input = input()
output is like this:
print("Output 4 you")
+ 2
The print statement is for output, not for input.
+ 2
If you write
Print("I can count from 1 to 100")
as your "input" to write a code, it is wrong. Because you have to write 'print' instead of 'Print'.
If your code should use
Print("I can count from 1 to 100")
to take an input from an user, it is wrong. Because 'print' is an output, not an input.
+ 2
Yes, if you want to print some text on the console, this is right.
+ 2
Bro uh should try this one <3
my_input = input()
output is like this:
print("Output for you")
+ 1
print needs to be lower case but apart from that – your code should work
+ 1
In Python all input is of type string. If you want a different type you have to convert it. (I'm not entirely sure if this is what you want to know.)
+ 1
Because there is no input() statement.
0
Currently I learning python
For example :
Print ("I can count from 1 to 100000") is that correct ?
I'm sorry about my lame English 😅
0
That's not the answer what I want I need to know if my input correct or not , thanks
0
Don't expect people to put effort into helping you if you're not even willing to put any effort into asking your question.
https://www.sololearn.com/Content-Creation-Guidelines?
https://code.sololearn.com/Wv5gTHy1N6Ji/?ref=app
https://www.sololearn.com/discuss/1316935/?ref=app
https://code.sololearn.com/W3uiji9X28C1/?ref=app
https://www.sololearn.com/discuss/333866/?ref=app
0
It is correct – but there is no input in your code?
0
Do you want to say that my question is not clear?
0
Yes.
0
Okay.
I ask about if this input is correct or not
Print("I can count from 1 to 100 ")
0
No.why there is no input in my code
0
I'm sorry but can you give me example about correct statement
0
Take the Python for Beginners course. It is all explained there.