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


<span style="background-color: rgb(245, 245, 245);">yes it will be but if you writing your code on idle shell otherwise it will don't show output it will be blank</span>
<span style="background-color: rgb(245, 245, 245);">
</span>
04-08-21, 10:54 a.m. chetandagajipatil333@gmail.com


Log-in to answer to this question.