Format characters do not need to be specified?

Asked

Viewed 43 times

0

Format characters have to be specified? for example:

x = "Get rekt m8"
print "Eu disse: %r." % x

So why didn’t I need to specify this and it worked anyway?

hilarious = False
joke_evaluation = "Isn't that joke so funny?! %r"
  • What do you mean esta funcionou? Can you describe what behavior you’re observing differently than you expected?

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.