I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
total length

Enter the code into geany and save it as a new file. Remember to end your filename with .py.

Make the following changes –
1. Ask for a second word using input. Store it in a different variable.
2. Display the length of that second word.
3. Add up the lengths and display a total.

word = "hello"
wordOneLen = len(word)
print(wordOneLen)


[python_submit]

Comments are closed.

Information