Python While Loop User Input || While Loop || Python
In this we are going to see a basic program on while loop to get user input in Python Programming Language.


def get_user_input():
    i = 0
    user = []
    while i < 3:
        i += 1
        user_input = input("Enter a Username: ")
        user.append(user_input)
        print(user_input)
    print(user)

get_user_input()

# Coded By Dhiraj Shelke

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post