0

what is the output for command print("3+7") in python?

25th May 2017, 7:09 AM
hemanth kumar
hemanth kumar - avatar
5 Antworten
+ 6
3+7
25th May 2017, 7:12 AM
Rajyalakshmi Reddy
Rajyalakshmi Reddy - avatar
+ 6
it will consider it as string
25th May 2017, 7:14 AM
Rajyalakshmi Reddy
Rajyalakshmi Reddy - avatar
+ 4
Why don't You try to run this code in python? Output is 3+7. It's because python thinks about this expresion as of the string. So it outputs plain text.
25th May 2017, 7:13 AM
zdena
+ 2
same as it because the " " was codded output:3 +7
25th May 2017, 1:51 PM
MOHANRAJ D
MOHANRAJ D - avatar
0
20th Oct 2021, 12:35 AM
medlin
medlin - avatar