Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
206

PYTHON TUTORIAL

TheRealSnowSJ
TheRealSnowSJ

Comparison -

FeaureInteractive OnlineNon-Int OnlinePDFJupyter
Readable ContentYesYesYesYes
Input your own codeYesNoNoYes (Your code will not be validated)
Run code snippets used in the tutorialNoNoNoYes
Open source codeYesYesYesYes

These links are powered by SJURL , my personal URL Shortener. If these links do not seem to be working, click here and make sure it says Up. If not, ping me below and I'll try to figure out why my site isn't up.

Yay my first post that came onto the 'hot' section of Repl Talk!
omg yay this is beyond expectations, 130 upvotes! Can we get to 140?

Please make sure you are signed into repl.it or else it gives an error

The Easy Way to Learn Python

With this easy to use Python tutorial, you can learn python the easy way

This Python tutorial covers -

  • IDE Comparison (Level0)
  • Your first hello world! (Level1, Print)
  • String vs. Int vs. Float (Level2)
  • Variables (Level3)
  • Conditionals, with if, elif, and else (Level4)
  • User Inputs (Level5)
  • Lists (Level6)
  • Functions (Level7)
  • 2D Lists (Level 8)
  • Loops (Level 9 & 10)
  • Dictionaries (Level 11)
  • Common Modules (Level 12)

Coming Up

I plan to add the following topics later on

Also Supports -

  • ACCOUNTS
    • These accounts are secure, and only you can access your password. Only you can delete your account, and only you can login with it.

EDIT: I investigated a bit with the account system, and if u don't have a repl.it account/aren't signed in when using this, then ur account may be deleted if ur browser cookies/cache are cleared.

  • Accounts help save your progress so you don't have to redo hours of tutorial again.
  • **Different colors to differentiate tutorial and code. **
    • In this tutorial, all text isn't white; And if you get deeper inside, you'll learn how to color your text too!
  • Opportunities for you to try out the code you're learning!
    • Throughout the tutorial, you will get Opportunities to type some code, and have it verified by the PythonTutorBot.

Contributing

While I cannot allow anyone to directly edit my tutorial, you can contribute by making a pull request on the GitHub Repo. (Find it here)

Updates

LISTS GOT ADDED!

Functions are here!

Welcome, 2D Lists!

Loops just got added!

Dictionaries are here

The manual level picker now also shows what each level has, instead of just the number.

Common Modules

Bonus lesson, level0, ide comparison, added

Tell me if you have more you would like to see!
Try it out here
Btw I made this whole thing in 3 days

Note: This whole tutorial was built on my favorite IDE, repl.it

Update:
A while back, I finally set up my own URL shortener with tracking statistics and changed the link to my shortened one, and the results were amazing! The link got 14 views in an hour alone! thanks for your support everyone!

Link Clicks so far - 592 πŸ‘€
EDIT: I obviously have a lot more clicks, but i'm not going to be editing this as frequently.

2 years ago

Voters

Comments

TopNew
1
1
Georgettes
Georgettes

Thanks for sharing this imformative tutorial.
https://www.myccpay.net/

11 months ago
1
Jamesn69
Jamesn69

Thanks for the step by step tutorial. Works like a charm!

https://www.walgreenslistens.kim/

1 year ago
1
Dekay4
Dekay4

HOW THE HELL DID YOU DO THIS!?!?!?!?!? I NEED ANSWERS PLS!!!!

2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@Dov4k
lmao thanks, it took me a while, basically just made it in my free time.

Im working on an Web Dev tutorial atm...

2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@MrDQuinn
@danparaskev
i see you all want to edit the tutorial...
While i cant allow direct editing, you can create a pull request on the Github Repo

(Just try editing the file normally, and it will ask you if u want to propose your change)

2 years ago
1
jimmytranscript
jimmytranscript

Need some help with Level 7!
I keep getting an error message on line 3 when trying to call my function.
my_func() isn't working for some reason.
Let me know what I'm doing wrong please

2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@jimmytranscript
hmmm
what are you entering?
are u calling it at the end?
did u put at least 3 when it asked you for num of lines?

2 years ago
1
alanchen12
alanchen12

Just a note -
For the IDE's part (the pdf), it says atom does not have a terminal. However, there are packages that allow you to have a terminal. Also, the IDE part does not have VSCode >:(


@CoolCoderSJ

Also you should add a cancel account creation option

2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@alanchen12
1) All right, I will add that later on
2) Sorry if this offends you but VSCode is overrated. I downloaded it a week ago, and it’s exactly what repl.it is just offline, and without cool features like hosting, db, etc.

  1. I will add that
2 years ago
1
deucemuch
deucemuch

I can't seem to get passed level 7 question about defining a function.
Not sure what I'm doing wrong.

2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@deucemuch
uh oh...
what are you entering?

2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@deucemuch
also note: At any point if you need to manually move levels, you can rerun the repl and choose option 4.

2 years ago
1
deucemuch
deucemuch

@CoolCoderSJ

def my_func():
(i then receive lines of error messages)

2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@deucemuch
uhhh
so if i remember this correctly, it asks for the number of lines your func is going to be, since it only listens for that long. Put at least 3 there...
then do

def my_func(): #your stuff here, after typing four spaces...... and #this should be the num (of lines you entered before) - 2 my_func()

remember to call it at the end...

2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@deucemuch
it seems to be working for me if I put

def my_func(): print("Stuff") my_func()
2 years ago
1
deucemuch
deucemuch

@CoolCoderSJ
yep that was it I didn't put in the number of lines.
Preciate the help & the amazingly intricate tutorial!!

2 years ago
1
botfivehundred
botfivehundred

@CoolCoderSJ
Do you know how to restart a program in python?
Like if you do:
Thingy = input("Do you want to restart? ")
if thingy == 'yes' or 'Yes:
Your answer here
I tried using return, but it doesn't work :(

2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@bot502
return is only usually the end of a function. Return would be like

def wow(): return "hi" d = wow() #d is "hi"

To restart a repl use

import sys import os os.execv(sys.executable, ['python'] + sys.argv)
2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@bot502
hey also another tip is use .lower()
so

thingy = input("Do you want to restart? ") if thingy.lower() == 'yes': #Func here

or .upper()

thingy = input("Do you want to restart? ") if thingy.upper() == 'YES': #Func here
2 years ago
1
botfivehundred
botfivehundred

@CoolCoderSJ
Oh and how do you do that thing.
Like make the script gray.
Like make a code in the comments.

2 years ago
1
botfivehundred
botfivehundred

@CoolCoderSJ
And I'm making a direct print project/code thingy.
I'm not using def

2 years ago
1
botfivehundred
botfivehundred

@CoolCoderSJ
I can share it with you.

2 years ago
1
TheRealSnowSJ
TheRealSnowSJ

@bot502
gotchu
if u want to add code, type 3 of these --> ``` , then right in front of it type the language, then on lines under it type your code, and end with ```

Example -

```python
Code here
```

2 years ago
Load more