Python Python Basics Meet Python Using Input

Marian Mwendamberi
Marian Mwendamberi
73 Points

finding it difficult using_input.py

using_input.py
favorite_color=("what is your favorite_color")

1 Answer

Maxwell Newberry
Maxwell Newberry
Front End Web Development Techdegree Student 7,675 Points

Hey there Marian, welcome to Python! In Python, to get a user's input we use a method called input(). All you need to do is put input before the parenthese in your code like this:

favorite_color = input("What is your favorite_color? ")