+ 1

can you do it more simple?

i make above program with python but i think this program is simpler so if you make it,please teach me a = input() b = int(a) c = b*9+9 print(c) I

19th Jan 2020, 6:56 AM
Modori
Modori - avatar
3 Answers
+ 3
How about just: print(int(input()) * 9 + 9) ?
19th Jan 2020, 7:18 AM
Seb TheS
Seb TheS - avatar
+ 2
But otherwise there is nothing to simplify. You could replace: b * 9 + 9 With: (b + 1) * 9 But it's not simplier.
19th Jan 2020, 7:21 AM
Seb TheS
Seb TheS - avatar
+ 1
Thank you so much!i’m beginnerđŸ€”
19th Jan 2020, 8:09 AM
Modori
Modori - avatar