Q.What will following code print?

str1 = '''Hell
          o'''
str2 = '''Hell \
          o'''
print (len(str1)>len(str2))

Answer =

You can understand by Watching video :-


>>>True

Because : Str1 = hell\no

                 Str2 = hello

9 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. It is false sir, i tested out the exact same code on Python, its showing False

    ReplyDelete
  2. its surely false sir

    ReplyDelete
  3. in this code we got a false
    but in textbook str=2 in backslash has no space

    ReplyDelete
  4. it is true....we checked in python

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post