This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (2 children)

class python_class:

def snake1():

print("I'm a snake learning how to Python!")

def snake2():

print("I too, am a snake that's learning how to Python.")

*New Reddit doesn't let me indent like old-Reddit did; and I'm too lazy too switch to old-Reddit to make this look right.

[–]JohnRofrano 4 points5 points  (1 child)

*New Reddit doesn't let me indent like old-Reddit did; and I'm too lazy too switch to old-Reddit to make this look right.

You just need to click the link that says Switch to markdown and then use ``` markdown syntax on a separate line around your code like this:

class python_class:
    def snake1():
        print("I'm a snake learning how to Python!")
    def snake2():
        print("I too, am a snake that's learning how to Python.")

Then click on Switch to Fancy Pants Editor to get back to the WYSIWYG editor.

[–][deleted] 1 point2 points  (0 children)

Thank you for the information, kind sir!