-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpractice.py
More file actions
47 lines (34 loc) · 806 Bytes
/
Copy pathpractice.py
File metadata and controls
47 lines (34 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 2 21:44:32 2026
@author: salehi
"""
'''def hello():
print("Hello, World!")
hello()'''
'''def great():
name=input('please enter your name:')
return name
res=great()
print(f'hello {res}')'''
'''def is_positive(num):
number=int(num)
if number >=0:
return True
return False
num=input('enter number:')
print (f'{is_positive(num)}')'''
'''def sum_of_squares (num1,num2):
result=int(num1)**2+ int(num2)**2
return result
number1=input('enter number1:')
number2=input('enter number2:')
print(sum_of_squares(number1, number2))'''
def is_greater(a,b):
if a>b:
return True
return False
a, b = map(int, input("دو عدد وارد کنید: ").split())
print(f'{is_greater(a,b)}')
print(a)
print(b)