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

8 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

Post a Comment

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

Previous Post Next Post