Aswin.V ,
please do a try by yourself first and post it here.
thanks!
24th Feb 2022, 3:21 PM
Lothar
+ 5
You can learn python while loop as you learned in C++
24th Feb 2022, 3:21 PM
Simba
+ 1
Aswin.V
In python
1 - to take integer input
number = int(input())
2 - python doesn't have { } so use color (:) after each condition or function declaration like this:
def convert():
while n < N:
3 - to print value use print function like:
print(total)
4 - code inside block should be indent.