Python beginner project |Build a list generator game

Опубликовано: 01 Октябрь 2024
на канале: edtech by meera
12
0

Learn Python by building a List Generator. First code a welcome message using the built-in python function. Then write python() function with a blank parenthesis without any parameters, this blank print() function is to execute the print message that you wrote in above lines.
Then create 3 variables namely, start,end,incr respectively, where start variable is created to assign and store numbers to start the list, variable end is created to assign and store the last number in the list and variable incr , is used to assign and store increment numbers to add each time, to the list of numbers.
Then we use the for loop to iterate over a range within the start,end and incr numbers , to generate a list that is stored in the iterable variable i.
Finally we print the list by writing print(i)

More of python beginner Projects here
   • Python beginner Projects  

#python #pythonbeginner #pythonforbeginners #pythonprogramming #pythonprogramming #pythontutorial #python3 #learnpython #pythonprojects #pythontutorial