1. Home
  2. /
  3. Blog
  4. /
  5. variables and input in python
Python

variables and input in python

September 27, 2022 1 min read 2,283
variables and input in python
variable_name = "ahmed" #write the variable name directly #and give it it's value variable_name=input("----")#to input the value of the variable variable_name=int( input() ) #for only integer input variable_name = float(input("enter your name ...")) #for only float input print(variable_name)#to call the variable
Share:
Read next

Related articles