Ask coding questions

← Back to all posts
So can some one help me figure out what I am doing wrong? Beginner new to Python
YvngBashit (17)

So can some one help me figure out what I am doing wrong? Beginner new to Python
https://storage.googleapis.com/replit/images/1536185814245_e97e4735a10ed0c7d75ecb5b80168694.pn

Comments
hotnewtop
multicoder2021 (3)

Maybe this code:

def three_numsum(num1, num2, num3):
  sum = num1 + num2 + num3
  print(sum)
three_numsum(2,3,6)
RYANTADIPARTHI (6018)

indent the return that's probably doing it. indent it a bit.

Geocube101 (628)

Return is not aligned properly.
Try indenting 'return' to align with line 3

def three_numsum(num1, num2, num3):
--sum = num1 + num2 + num3
--return sum

FamousBug_ (0)

try putting a space between three_numsum and the =
or add a space behind the 'return'