+ 1
Does this output: "79"?
print:("79")
5 Respuestas
+ 3
No. Run it in the code playground to see what really happens.
+ 2
if you want it to pront “79”, the statement would look like this:
print(“79”) # no colon
+ 1
You may think it says an error occurs or output is 79 but no. ":" breaks print statement, there will be no error and output.
0
x = '79'
print(f"{x}")
print(x)
print('79')
No colon :
Colon used to open block in python
0
No, even it's not an integer.
You can try this to understand the difference.
print(type("79"))
print(type(79))
But, if you want to print the output with quotes you can use the escape character \.
print(\"79\"")