المتغيرات وعملية الإدخال بالبايثون - 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

إرسال تعليق

الرجاء تحديد الوضع المضمّن لإظهار نظام التعليق.*

أحدث أقدم