+ 1

Do we need to put it in proper print formula for it to read

Please answer ASAP

21st Jan 2019, 2:48 AM
Ryan John Colley
9 odpowiedzi
+ 3
Your question is quite vague and difficult to understand. What exactly are you asking?
21st Jan 2019, 2:58 AM
Dread
Dread - avatar
+ 3
Okay, do this: Explain what you are trying to do, what issue you are running into, and what you need help with. Are you trying to say you can only print strings via print(string) and not another method?
21st Jan 2019, 3:01 AM
Dread
Dread - avatar
+ 3
Alright, let's just restart. I genuinely want to help you. What are you trying to do? Let's start there.
21st Jan 2019, 3:04 AM
Dread
Dread - avatar
+ 3
No, a string is just a data type. Whenever you declare x = "a string", it now means that x holds that string. It does not mean it prints it. You can use print to output what x holds, being the string; as well as supply a string to print() as a standalone argument.
21st Jan 2019, 3:09 AM
Dread
Dread - avatar
21st Jan 2019, 3:28 AM
Louis
Louis - avatar
+ 2
it only has an output when I use print then brackets and then the string
21st Jan 2019, 2:59 AM
Ryan John Colley
+ 2
yes but it also works with the x=
21st Jan 2019, 3:02 AM
Ryan John Colley
+ 2
thanks
21st Jan 2019, 3:09 AM
Ryan John Colley
+ 1
i’m just trying to learn more about python and learn the language but I, dont understand why I, have to use print or x= , I thought the string automattocally outputted itself?
21st Jan 2019, 3:07 AM
Ryan John Colley