+ 1
Can anyone make me understand?
If certain job can be done with little and easy code then what is the need of complex and long codes for the same problem ?
6 Answers
+ 1
No
Cause I have seen ,they are good at programming but still they give the long and complex solution for simple problem which could have done easily.why is that?
+ 1
Yeah
That can happen
+ 1
I personally do it for challenge. Deliberately coming up with unorthodox solutions for a simple problem.
For one, that is the purpose of oneliners
What will you learn from:
x = int(input())
for i in range(x):
print('*' * i)
When doing it like this helps you learnđ
print('\n'.join['*' * i for i in range(int(input))])
+ 1
Yeah that may be the point .
But I will use it only when needed