PY
py
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
#1
x=int(input())
if x > 7 :
print("profit ")
else :
if x < 7:
print("loss")
else :
if x == 7:
print("broke even")
# 2
# x=int(input())
# print("profit"
# if x>7
# else "loss"
# if x!= 7
# else
# "Broke Even")
# same code as 2 but in one line
# x=int(input())
# print("profit"if x>7 else "loss"if x!= 7
# else "Broke Even")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run