0
Convert the code given in description from java to python
class p1 { public static void main (int n,int m) { if(n>m) System.out.println(n); else System.out.println(m); }} //I want a class name and input from user
3 ответов
+ 1
I'm sorry, I can't write your code for you. But this lesson might help:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2278/
If you complete your python tutorial up to this point, you should be able to figure it out yourself. But if you get stuck, please share your attempt, and we can help you out.
0
Make a function that accepts n and m. Python also has a built in max() method that returns the largest number.
def maximum(n, m):
print(max(n, m))
return
0
Please rewrite the code . I want a class name and a user input too