Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Solution

  • Create a program that allows the user to enter a number, and then outputs triple that number
number = int(input())
print(3 * number)
  • Create a program that allows the user to enter a word/phrase, and then outputs the lengths of that word/phrase
phrase = input()
print(len(phrase))

Contributors: