Python Course Guide
  • Introduction to Python
  • Guides
    • Course Outline
    • Getting started with Python
    • Syntax
    • Variables
    • Datatypes
    • Casting
    • Numbers
    • Operators
      • Python Math
    • Strings
    • Python String Formatting
    • User Input
    • Git and Github
    • Booleans
    • List
    • Tuples
    • Sets
    • Dictionaries
    • Conditionals
    • Loops
    • Function
    • Arrays
    • Try and Except
    • Scope
    • Classes and Objects
    • Class Methods and Properties
    • Inheritance
    • Polymorphism
    • Dunder Methods(Double Underscore Methods)
    • Decorators
    • Iterator and Generator
    • Modules and Packages
    • Date and Time
    • JSON
    • RegEx
    • Pip
    • File Handling
    • Data Structures and Alogrithms
    • References
Powered by GitBook
On this page
  1. Guides

User Input

User Input

Python allows for user input.

That means we are able to ask the user for input.

Python uses the input() method.

// Example code
username = input("Enter username:")
print("Username is: " + username)

Python stops executing when it comes to the input() function, and continues when the user has given some input.

PreviousPython String FormattingNextGit and Github

Last updated 2 years ago