Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python gender input


def prefix(genders):
    if(genders == 'male' or genders == 'Male'):
        print(f"You're a {genders}.")
    elif(genders == 'female' or genders == 'Female'):
        print(f"You're are a {genders}.")
    else:
        print('unknown gender')

genders = input('Please, enter your gender: ')

prefix(genders)
Comment

PREVIOUS NEXT
Code Example
Python :: meter replacement application 
Python :: codeforces 1133A in python 
Python :: python get text that is already printed 
Python :: linkedin python test 
Python :: python to uml 
Python :: vortex identification 
Python :: python sqlite select where 
Python :: OSError Traceback (most recent call last) <ipython-input-74-8920269c5588 in <module() 9 10 run_with_ngrok(app) --- 11 app.run() 
Python :: transfer learning in python with custom dataset 
Python :: apropos, help 
Python :: keyword only arguments python 
Python :: Python NumPy transpose Function Example with use of tuples 
Python :: python antigravity 
Python :: python code to find duplicate row in sqlite database 
Python :: Python NumPy asfortranarray Function Scalar to an array 
Python :: Python NumPy column_stack Function Example with 1d array 
Python :: Python NumPy insert Function Example Working with Scalars 
Python :: torch mean of tensor 
Python :: python interpreter after running a python file 
Python :: simpy 
Python :: NumPy right_shift Syntax 
Python :: wget http://xael.org/norman/python/python-nmap/pythonnmap- 0.2.4.tar.gz-On map.tar.gz 
Python :: ExpressionalRebel 
Python :: Python range Incrementing with the range using a positive step 
Python :: torch view vs unsqueeze 
Python :: tensorflow 1.x spp implementation 
Python :: changing labels of facetgrid 
Python :: Repetition in code for routes in Flask (or Bottle) 
Python :: cours python 
Python :: parseint python equivalent 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =