Ask coding questions

← Back to all posts
Encoder
JagLaser

I am trying to figure out how to define a function not sure what I am messing up on.

Voters
JagLaser
Comments
hotnewtop
MrVoo

You printed out your function at the very end, also you might want that indented

JagLaser

@MrVoo Where should I put it? I am learning coding and this is my first time trying this.

JagLaser

If i put it above it says error

MrVoo

@EthanColeman1 No, not above... INDENT it. Put spaces or a tab behind it

JagLaser

@MrVoo I really apologize but I still am not sure what to do. I did what you said, how do i get it to actually do what i want it to do?

MrVoo

@EthanColeman1 You're printing out the function object. The way you made is isn't ideal anyway. Try comparing two lists, or learning more Python before you do any of this

CosmicBear

What is going wrong with your code?

JagLaser

@CosmicBear It does print what I want it prints function code_1 and then a bunch of numbers.

JagLaser

<function code_1 at 0x7f93a1eb0820>

CosmicBear

you you're not messing up on anything? @EthanColeman1

JagLaser

You have to go to my other file.