Solve the code help meee | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
14th Jan 2024, 9:17 PM
Ahmed Khalaf
Ahmed Khalaf - avatar
3 Answers
+ 4
Ahmed Khalaf , indentation is not correct. maybe you should read the related lesson again, and also do some practices. > you also should use *4 spaces* per indentation level, this is recommended in the python style guide. the code should look like this: def add_numbers(a, b): result = a + b return result sum_result = add_numbers(5, 3) print(sum_result)
14th Jan 2024, 9:23 PM
Lothar
Lothar - avatar
+ 3
Ahmed Khalaf , you are welcome ....
14th Jan 2024, 9:25 PM
Lothar
Lothar - avatar
+ 1
Thanks
14th Jan 2024, 9:24 PM
Ahmed Khalaf
Ahmed Khalaf - avatar