more if examples

This commit is contained in:
Mert Gör 🇹🇷 2023-05-20 06:27:42 +03:00
parent 5ee4d38ff0
commit 6dd7187c35
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
2 changed files with 18 additions and 0 deletions

4
if-example-positive.py Normal file
View File

@ -0,0 +1,4 @@
a = int(input('a:'))
if a > 0:
print('pozitif')
print('son')

View File

@ -0,0 +1,14 @@
a = int(input("a:"))
b = int(input("b:"))
c = int(input("c:"))
if a > b:
if a > c:
print(a)
else:
print(c)
else:
if b > c:
print(b)
else:
print(c)