Function returns “none” after successfully doing its job. /u/PetRock_III Python Education

So, I have a function that goes as follows render_board(a1, a2, a3, b1, b2, b3, c1, c2, c3): board = (a1 + a2 + a3 + “n” + b1 + b2 + b3 + “n” + c1 + c2 + c3) return board

It’s supposed to return the variables in a 3×3 grid, which it does perfectly. My only problem is that it also spits out “none” at the end. Does anyone know why?

P.s. Sorry for terrible formatting, am on mobile.

submitted by /u/PetRock_III
[link] [comments]

​r/learnpython So, I have a function that goes as follows render_board(a1, a2, a3, b1, b2, b3, c1, c2, c3): board = (a1 + a2 + a3 + “n” + b1 + b2 + b3 + “n” + c1 + c2 + c3) return board It’s supposed to return the variables in a 3×3 grid, which it does perfectly. My only problem is that it also spits out “none” at the end. Does anyone know why? P.s. Sorry for terrible formatting, am on mobile. submitted by /u/PetRock_III [link] [comments] 

So, I have a function that goes as follows render_board(a1, a2, a3, b1, b2, b3, c1, c2, c3): board = (a1 + a2 + a3 + “n” + b1 + b2 + b3 + “n” + c1 + c2 + c3) return board

It’s supposed to return the variables in a 3×3 grid, which it does perfectly. My only problem is that it also spits out “none” at the end. Does anyone know why?

P.s. Sorry for terrible formatting, am on mobile.

submitted by /u/PetRock_III
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *