+ 1

How can I make a 3rd input for python optional, struggling and can't find answer?

29th Feb 2020, 8:08 AM
GuitarThePun
GuitarThePun - avatar
4 odpowiedzi
+ 2
GuitarThePun tries this code. here 3rd input is optional if the user does not give the 3rd input then z will use it's the default value which is 0.you can change the z value according to your need if you want just to replace the value of z. https://code.sololearn.com/c9RjGMZiOMML/?ref=app
29th Feb 2020, 8:58 AM
Maninder $ingh
Maninder $ingh - avatar
+ 2
Please elaborate more.give some example so that we can help you.
29th Feb 2020, 8:45 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
Thank you very much!
29th Feb 2020, 9:00 AM
GuitarThePun
GuitarThePun - avatar
0
https://code.sololearn.com/cl4EL9N4Prw5/?ref=app I'm trying to make a calculator, but I would like to make so that when I square a number, I don't have to make a 3rd input
29th Feb 2020, 8:47 AM
GuitarThePun
GuitarThePun - avatar