الأمر input command in python يستخدم لجعل مستخدم البرنامج قادر على إدخال بيانات و من خلال شاشة command أو تسمى terminal و تلك الأوامر يتم إدخالها في هيئة نص, قم بتنفيذ المثال التالي:
name = input("enter your name: ") age = input("enter your age: ") after_10 = int(age) +10 print("welcome "+name+" your age now is "+str(age)+ " after 10 years your age will be "+ str(after_10))
- روابط هامة لكورس لغة بايثون
- المتغير variable python
- انواع البيانات data type python
- if condition in python
- for loop in python
- while loop in python
- arithmetic operators in python
- assignment operators in python
- comparison operators in python
- logical operators in python
- identity operators in python
- input command in python
- array collection in python
- list in python
- tuple in python
- set in python
- dictionary in python
- iterators in python
- function in python