In C++, we simply use std::endl
in order to print a result in multiple lines. How can I do the same in Python? I use '\n' and I face a problem.
If I wanted to write the code in C++, here's how I'd write it:
#include <iostream>
#include <math.h>
int main()
{
int a,b;
cin>>a>>b;
cout<<a+b<<endl<<a*b<<endl<<pow(a,b)<<endl;
}