Ajax-loader-large-white
Phonebook
User Input

Hello! We are on our way to develop a utility for creating a phonebook with name and number and then search for specific numbers. We start out exercise with user input function.
The raw_input() function is used to take user input in string format, while the input() function is used to take user input in integer format.

Instructions

Declare a variable 'choice' which takes user input in the integer format.
Declare a variable 'word' which takes any string input as raw data from the user.

Print both the variables.

?
Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

input() function is used for integer input, while raw_input() is used for input in string format.

script.py