Skip to content

Commit aa7cb92

Browse files
Create determine_trend.py
Signed-off-by: Ruslan Senatorov <55090151+ruslansenatorov@users.noreply.github.com>
1 parent 4c3b75e commit aa7cb92

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

task/8_1/determine_trend.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# FULL PYTHON SOLUTION
2+
f1, f2 = map(float, input().split())
3+
trend = 'inc' if f1 > 0 else ('dec' if f1 < 0 else 'flat')
4+
shape = 'convex' if f2 > 0 else ('concave' if f2 < 0 else 'linear')
5+
print(trend + ' ' + shape)

0 commit comments

Comments
 (0)