Post

TeeJay
TeeJay@Thomas_JMcGee·
@Python_Dv It’s 4 because for it to print correctly you will need to use F before the parentheses and use {} with the name of the variable for it to work
English
0
0
0
10
Ayush Katiyar
Ayush Katiyar@Katiyar1301·
@Python_Dv Code adds two numbers, x and y x = 5 assigns the value 5 to x y = 3 assigns the value 3 to y result = x + y adds x and y and stores the result (8) in result print("The result is", result) Output: The result is 8
English
0
0
0
177
Rik Verbeek
Rik Verbeek@Rvrbk·
@Python_Dv I would assume ‘the result is 8 because 8 is 2 integers being added and they’re printed to the console separately (,)
English
0
0
0
3
Nze🧙🏿‍♂
Nze🧙🏿‍♂@_OnyeNze·
@Python_Dv The answer is 1. 2 different arguments in a function will give the answer 1.
English
0
0
0
108
Paylaş