I wrote my code in python 3.8:
def max_magnitude(num1, num2):
return num1 if abs(num1) > abs(num2) else num2
print(max_magnitude(-8,-2))
I hope this helps!
The variables must begin with a letter of the alphabet, a dollar sign or a underscore. After the first character you may add numbers as well. All special characters besides the dollar sign and underscore and not allowed in variables.
I’m pretty sure you can; or u can also screenshot n send, which is what i usually doooo
Answer:
print("hello world")
Explanation:
a hello world program is simply a program that prints out hello world.
for this you would need to remember to have the same number of brackets on each side and to write print. Also remember when printing to include speech marks.