Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

user information in python

age = input('what is your age?: ')
print("You are "+age + " years old")

ans : what is your age?: 23
You are 23 years old

#input method in python.A selected question would prompt and user should ans that.
#after that programme will show age with a text message.
Comment

PREVIOUS NEXT
Code Example
Python :: python open google 
Python :: translate french to english 
Python :: how to calculate the variance of all columns in python 
Python :: python discord 
Python :: how to show a progress spinner when python script is running 
Python :: python crop string 
Python :: Code of recursive binary search 
Python :: python file modes 
Python :: python insert path 
Python :: how to make a python terminal 
Python :: python file back to beginning 
Python :: pygame text wrapping 
Python :: how to get first element of array in python 
Python :: how to find the path of a python module 
Python :: while activating env show error of unautorize access in vscode 
Python :: from django.db import models 
Python :: increase recursion depth google colab 
Python :: pandas currency to numbe 
Python :: fibonacci number 
Python :: add reaction discord.py 
Python :: Using Python, getting the name of files in a zip archive 
Python :: django error handling < form 
Python :: BURGERS2 solution 
Python :: get the list of column names whose data type is float python 
Python :: flask url_for 
Python :: python remove consecutive duplicates 
Python :: seaborn distplot 
Python :: gaussian filter 
Python :: SyntaxError: positional argument follows keyword argument 
Python :: installing private python packages from requirements.txt 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =