Python Forum
Homework Teacher isnt helping need some help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Homework Teacher isnt helping need some help
#2
The 'len' function takes a string as an input and returns the length of the string. In the last line, you used the number 3 as an input to len(), which doesn't work because 3 is not a string. 

If you want to find the length of the word entered by the user, write len(word)- word is the name of your variable
Reply


Messages In This Thread
RE: Homework Teacher isnt helping need some help - by Lux - Nov-04-2017, 07:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting my choices to display fro some reason it isnt working. dgizzly 5 1,396 Oct-24-2022, 04:53 PM
Last Post: DeaD_EyE
  Code isnt working abdullahali 5 3,477 Oct-01-2018, 02:31 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020