saving . . . saved Solution 2 at 6:06 has been deleted. Solution 2 at 6:06 has been hidden .
Solution 2 at 6:06
Title
Question
I think it is more appropriate to write Solution 2 as:
print(n) if n % 10 == 0 else print(10*n)
instead of:
print(n) if n % 10 == 0 else 10*n

Python-3.4.3 Conditional-Statements 06-07 min 0-10 sec 03-01-20, 2:28 p.m. vedavidya

Answers:

Thank you for pointing out the code.
05-02-20, 2:51 p.m. ankitrj.iitb


Log-in to answer to this question.