Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to save inputs python

#this is a getname command for example

# Function gets name from user
def get_name():
    print("Hello what is your name?")
    name = input("My name is: ")
    print("Hello ", name)
    return name
  
#  you can use the name as a variable in prints
print(name, 'you did very well')
#pls upvote
Comment

PREVIOUS NEXT
Code Example
Python :: python dynamic loop 
Python :: python print exception type and message 
Python :: how to make a module that generates a random letter in python 
Python :: convert tibble to dataframe 
Python :: python temp directory 
Python :: python last element in list 
Python :: koncemzem 
Python :: replace the jinja template value inside the dictionary python 
Python :: count how many vowels in a string python 
Python :: how to include specific data type from the dataframe 
Python :: pil save image 
Python :: python pandas transpose table dataframe without index 
Python :: python discord bot wait for response 
Python :: how to fill an array with consecutive numbers 
Python :: print matrix eleme 
Python :: python locks 
Python :: only int validator PyQt 
Python :: maximo numero de variables dentro de un .def python 
Python :: print no new line python 
Python :: left join two dataframes pandas on two different column names 
Python :: select only object columns pandas 
Python :: python nameerror input 
Python :: python check if variable is string 
Python :: urllib.error.HTTPError: HTTP Error 403: Forbidden 
Python :: convert list to string python 
Python :: how to make any player hit a ball using python turtle 
Python :: python open file same folder 
Python :: python integer validation 
Python :: Feature importance Decision Tree 
Python :: Python program to check leap year or not? 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =