+ 1
How to make a python code organized like the c++ codes ?
5 Réponses
+ 1
Blank space is not interpreted as anything so you can leave neat gaps and paragraph your work. Use comments to explain the steps above each. And use functions so your main doesn't look overloaded.
+ 1
a = int(input("Enter a number: "))
print(a)
0
like this
in c++ every line is clear to read very simple
#include <iostream>
using namespace std ;
int main ()
{
int a;
cout << "enter any number :" <<endl;
cin >> a;
cout << a;
}
but in python with the same code it's complicated to read