Jul-29-2021, 09:10 PM
(This post was last modified: Jul-29-2021, 09:10 PM by deanhystad.)
def numbers(): x = 2 y = x+2 return x, y print(numbers()) x, y = numbers() print(x, y)
Output:(2, 4)
2 4
Variables not returning
|
Jul-29-2021, 09:10 PM
(This post was last modified: Jul-29-2021, 09:10 PM by deanhystad.)
def numbers(): x = 2 y = x+2 return x, y print(numbers()) x, y = numbers() print(x, y)
|
|
Messages In This Thread |
Variables not returning - by dedesssse - Jul-29-2021, 06:22 PM
RE: Variables not returning - by ndc85430 - Jul-29-2021, 06:25 PM
RE: Variables not returning - by deanhystad - Jul-29-2021, 09:10 PM
RE: Variables not returning - by perfringo - Jul-30-2021, 06:59 AM
|