+ 1
Is there a way to convert this C++ code to python?
5 Answers
+ 7
This is what is meant by posting and sharing a link to it.
https://code.sololearn.com/cYCM3em8c1iy
Your code in C++ has some issues and won't run due to compile errors. It also has code that can't be reached because you directed the values that make an if statement true to a different path so the statement can't ever be true.
There isn't a magic program to change C++ into Python. If you had a million lines of C++ to convert, it might make sense to create one. Given it would take longer to code and test such a program than to convert your code by hand, it doesn't make sense to do.
The knowledge to perform this conversion is a minor subset of the course for both languages, which shouldn't take much time to learn. However, it would help to get the program running correctly first.
+ 1
posted it
0
I will have to try and do it I'm new to this
0
lol ok