مشق دستیاب (Built-in) فنکشنز پر مشق

موجو

لائبریرین
السلام علیکم
2۔4
PHP:
>>> name=input('Your Full Name: ')
Your Full Name: Mojoo
>>> age=input('Your age is: ')
Your age is: 32
>>> print(name, "Your Age is: ", age)
Mojoo Your Age is:  32
 

موجو

لائبریرین
2.5
PHP:
>>> saleem=44
>>> kaleem=55
>>> aleem=66
>>> cmp(saleem>kaleem)
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    cmp(saleem>kaleem)
NameError: name 'cmp' is not defined
>>> max(saleem,kaleem,aleem)
66
>>> min(saleem,kaleem,aleem)
44
 
Top