+ 2

How to convert this code into phyton?

C++ to python https://code.sololearn.com/cuZYO6CWTl4v/?ref=app

24th Feb 2022, 3:00 PM
Aswin
Aswin - avatar
7 Respuestas
+ 6
Aswin.V , please do a try by yourself first and post it here. thanks!
24th Feb 2022, 3:21 PM
Lothar
Lothar - avatar
+ 5
You can learn python while loop as you learned in C++
24th Feb 2022, 3:21 PM
Simba
Simba - avatar
+ 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.
24th Feb 2022, 3:38 PM
A͢J
A͢J - avatar
+ 1
Lothar , Yes I will try myself 😊
24th Feb 2022, 4:17 PM
Aswin
Aswin - avatar
0
Please 🙏 Help me
24th Feb 2022, 3:01 PM
Aswin
Aswin - avatar
0
24th Feb 2022, 4:15 PM
Aswin
Aswin - avatar
0
A͢J thanks .
24th Feb 2022, 4:17 PM
Aswin
Aswin - avatar