Which line of code returns the number of characters in the string assigned to the username variable?

Automate Cybersecurity Tasks with Python | Weekly challenge 3 Quiz | 

Which line of code returns the number of characters in the string assigned to the username variable?

  • print(len(username))
  • print(username.len())
  • print(str(username))
  • print(username.str())

 

Leave a Comment