+ 1

Does this output: "79"?

print:("79")

11th Sep 2021, 9:31 PM
Ivan Miloơević
5 Answers
+ 3
No. Run it in the code playground to see what really happens.
11th Sep 2021, 9:38 PM
Simon Sauter
Simon Sauter - avatar
+ 2
if you want it to pront “79”, the statement would look like this: print(“79”) # no colon
12th Sep 2021, 12:47 AM
you are smart. you are brave.
you are smart. you are brave. - avatar
+ 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.
11th Sep 2021, 10:07 PM
mesarthim
mesarthim - avatar
0
x = '79' print(f"{x}") print(x) print('79') No colon : Colon used to open block in python
12th Sep 2021, 2:03 AM
Mahmoud ayman
Mahmoud ayman - avatar
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\"")
12th Sep 2021, 2:04 AM
Python Learner
Python Learner - avatar