EasyEnv
Engineering/Courses/Catalog/Python/Asking the User a Question
Python
BeginnerLesson 3 of 1915 min · hands-on

Asking the User a Question

Part of the Python course

So far you have written programs that always do the same thing when you click play. Run them ten times, get the same ten answers. They are useful, and they are not yet tools, because a tool is something a person can point at their own problem.

This lesson is the first time your program will pause, wait for a human to type something, and then react to what they typed. A program that does this is called interactive, meaning it holds a back-and-forth with whoever is using it rather than running start to finish on its own. It is the difference between a printed sign and a conversation. ...

Want to learn Python Asking the User a Question in a real environment?

Click below, get a fresh Linux box with Python ready to go, and work through Asking the User a Question hands-on with an AI tutor that knows your code.

Start this lessonAsking the User a Question

What you'll learn

  • Input()
  • String return type
  • Int() and float() conversion
  • Interactive programs

Read this lesson in your language

All lessons in this course

19 lessons
  1. 1Hello, Python20 min
  2. 2Numbers and Strings25 min
  3. 3Asking the User a Question15 min
  4. 4Control Flow30 min
  5. 5Lists and Tuples30 min
  6. 6Dictionaries and Sets30 min
  7. 7Functions30 min
  8. 8Comprehensions25 min
  9. 9Files and IO30 min
  10. 10Modules and Packages30 min
  11. 11Classes and OOP35 min
  12. 12Inheritance and Composition30 min
  13. 13Exception Handling30 min
  14. 14Iterators and Generators30 min
  15. 15Decorators30 min
  16. 16Context Managers25 min
  17. 17Concurrency: Threads and Async40 min
  18. 18Testing with pytest35 min
  19. 19Packaging and Deployment35 min

Explore other courses

Asking the User a Question - Python (English) | Engineering Courses