+ 1
How can I print a string on a new line??
Check this and help print all strings on a new line.. https://code.sololearn.com/cxNVzc5sSE9m/?ref=app
3 odpowiedzi
+ 9
Use '\n' to print in new line. Eg-
def max(x, y, z):
if x >y and x>z:
return x
elif y>x and y>z:
return y
else:
return z
x=float(input("Enter First No."))
y=float(input("\nEnter Second No."))
z=float(input("\nEnter Third No."))
a=str(max(x,y,z))
print("\nLargest no is "+a)
+ 3
Here is my answer:
https://code.sololearn.com/cTR9mxeWT2L9/?ref=app
+ 1
If you want to use your max() function, then you need to rename it, since the max() function already exists.
https://code.sololearn.com/cUfVQG75l9Ra/?ref=app