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

10th Nov 2018, 7:44 AM
Ps Rana
3 Answers
+ 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.
10th Nov 2018, 8:10 AM
Kishalaya Saha
Kishalaya Saha - avatar
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
10th Nov 2018, 8:16 AM
Brendon Bosman
Brendon Bosman - avatar
0
Please rewrite the code . I want a class name and a user input too
10th Nov 2018, 8:33 AM
Ps Rana