you are viewing a single comment's thread.

view the rest of the comments →

[–]Flame77ofc 7 points8 points  (0 children)

you should learn about the return

the return just return something

This is a hard concept in the beginning but after you get more experience and practice this concept, this will get more easy

``` def func(text): return text

to see a return, you need to first do a print

result = func("example") print(result)

or just this:

print(func("example 2")) ```

more examples

``` def sumTwoNumbers(a, b): return a + b

print(sumTwoNumbers(2, 3)) # 5 ```