Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. Assignment:
  2.  
  3. Let's start with len(). Set the variable parrot to the string "Norwegian Blue" (be sure to include the space and capitalize exactly as shown). Then call len() on parrot after the word print on line 5, like so: len(parrot). (We'll explain print in the next section!)
  4.  
  5. My code:
  6.  
  7. """Assign the variable parrot on line 4,
  8. then call len() on parrot on line 5!"""
  9.  
  10. parrot = "Norwegian Blue"
  11. print
  12. len(parrot)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement