+ 2
why this code will print like hello,none,none,none . And why will it print "hello" befor all "nones"
print(print(print(print("hello"))))
3 Antworten
+ 3
i think its maths
Have u studied BODMAS in maths
According to it the problem in the brackets have to be solved first
the codes is print(print(print(print("hello"))))
As the codes runs before printing the first print it goes to print the one in brackets
and going on into brackets it comes to hello and print it and then the one before hello
I also don't know but I am comparing it with maths
^-^....
+ 2
thanks to you both
+ 1
Hi,
it begins by the brackets the most nested so print("hello") in first
after print function returns nothing => print(nothing)=none
and so on