Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python procedured

def printname(): #procedure 
    name = input('What is your name? ')
    number = int(input('How many times do you want your name to be printed? '))
    for x in range(number):
        print(name) # This program will only run if the procedure would be called out in the main program.

print('Welcome to the name printing progam!')
print('------------------------------------')

printname() #Calling out the procedure
input() 
Comment

PREVIOUS NEXT
Code Example
Python :: python3 yyyymmddhhmmss 
Python :: discord bot python add bio 
Python :: time now random seed python 
Python :: convert decimal to binary in python 
Python :: how to check if email exists in python 
Python :: pandas remove column 
Python :: python read from stdin 
Python :: how to create table in a database in python 
Python :: check pandas version 
Python :: how to import flask restful using pip 
Python :: Django Check hashed Password 
Python :: pytest check exception 
Python :: python kill process by name 
Python :: how to merge two dataframes 
Python :: difference between compiler and interpreter 
Python :: drop missing values in a column pandas 
Python :: python do something before exit 
Python :: python hello world program 
Python :: python get memory address of variable 
Python :: python selenium web scraping example 
Python :: erase % sign in row pandas 
Python :: python selenium find by class name 
Python :: how to hide a turtle in turtle python 
Python :: if string contains list of letters python 
Python :: unzip_data python 
Python :: stock market api python 
Python :: left join outer apply 
Python :: block window if another window is open tkinter 
Python :: specify the number of decimals in a dataframe 
Python :: python get value from decimal object 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =