Learn to Code via Tutorials on Repl.it!

← Back to all posts
Python Lesson!
stoporinjail

Hello everyone! I have decided to make lessons for Python, right here! This might be converted into an interactive repl, depending on how it goes. This is meant for completely new people to Python.

What we will be learning

Lesson 1

  • Printing
  • Variables
  • F strings

Lesson 2

  • Multiple value variables
  • Imports: Random, time
  • Dictionaries
  • Loops
  • If, elif, else statements
  • User inputs
    I plan to have 6 topics for each lesson excluding this one.

Lesson 1:

This post will be lesson 1. I will post another in a few days for lesson 2.

Printing

In Python, the most important thing you will have to know is printing! It prints (writes) out a value.

How to:

Example:

If you run the program, the console (black screen on the right) will say Hello world

Variables

Variables are like a box in Python. You can put things in the box, remove things in the box, and even find out what's in the box.

How to:

or for numbers:

The number does not go into quotes.
To print out a variable:

or

Examples:

Output: Hi, Bob

F Strings

You can use an F string to print out variables and values more efficiently.

How to:

You must use the f before the quotes.

Example:

Output: Hello, Bob

Conclusion

So that was lesson 1! Have a great day! Lesson 2 will be released soon.

Other Lessons:

Other lesson links will be posted here.
Lesson 2: https://replit.com/talk/learn/Python-Tutorial-2/139771

Announcements

8/17/2021 Thank you for 100 likes!

Voters
Spenceroni
mobarmij
ch3ribomb
PeterEgedi
DanilNikitin1
ElijahDurham
Sant600
QuinnLorenz
BryannaJohnson
AnaMS
Comments
hotnewtop
Richardcoolcool

cool and thx!

Whippingdot

WHY DOES IT HAVE TO BE PYTHON

JWZ6

@Whippingdot i know right? there are way too many python tutorials

Flyingcrabs

Because python is the best language in the world @Whippingdot @JWZ6

JWZ6

@Flyingcrabs ik but there are at least 50 tutorials on Python

Flyingcrabs

I guess so @JWZ6

JWZ6

@Flyingcrabs wow yup

FlaminHotValdez

@Flyingcrabs that's extremely debatable about what language is best, each language has its own strong points in weak points.

html, css, js good for webdev.
C++ and c extremely fast.
Python very high level and easy to learn.

Each language has its own quirks, there is no "best" language. And even if python were the best language in the world, that doesn't justify the insane amount of tutorials about it that cover only the basics.

Flyingcrabs

well to see most of my projects are well html,css and python @FlaminHotValdez

stoporinjail

Personally, Python is the best because it's super easy to learn and doesn't require a lot of typing
c & C++ is too much typing
Idk about HTML, css or js but they're ok ig @FlaminHotValdez

Whippingdot

bruh in C and C++ you can do more things. It is like Java, you can create games with them. Python is a growing language, and is easier to write, but you can do less complex things with it. With libraries though, you can match the things C++ and C does, but it will be slower in execution. No-one would create an OS in Python because C and C++ would be way faster, and right when you press a button, you will get instant feedback. @stoporinjail

FlaminHotValdez

@stoporinjail typing isn't everything

python is extremely inefficient compared to c and c++

IntellectualGuy

@FlaminHotValdez You gotta agree that python is known for ML.

FlaminHotValdez

@IntellectualGuy yes, but c and c++ are still much efficient. each language has its pros and cons, there is no clear best language

stoporinjail

@FlaminHotValdez yeah i guess so

Nearday

@JWZ6 Yeah like literally there are so many python tutorials and it is really annoying because I already know python and I think there should be more tutorials on different languages.

Nearday
JWZ6

@pythoncooluser i made one on python TURTLE

Nearday

@JWZ6 Oh cool can I see it?

JWZ6
Nearday

@JWZ6 I already know turtle in python it is really easy but it is a really good tutorial I must say.

ArchilBeraia

@Whippingdot python has some features that c++ and other languages dont have. Python is much easier to start with when entering coding world. Even thought python is slow it is much understandable for begginers.

Nearday

@JWZ6 I was wondering if you would answer the question that I have posted because all the other ones are not working so please go to my profile and answer the question. If you click posts, you will see the question.

AvOcAdO506

@FlaminHotValdez ikr they don't even cover python turtle or /n and those are very basic

Bluelight4251

@JWZ6 I love Python!!!!!!! Just view my profile and You'll see.

Whippingdot

True, and that is why I would recommend it for beginners, but they main reason for this thread was because I asked why another Python tutorial. Python tutorials are already of so many so making more would be a waste of your time. After learning Python, people might strive to learn more Programming Languages (like me) and so for those languages, like C++, or C#, or JS, or Nodejs, or Elixir, or Swift, making tutorials would actually be a good use of time or at least a help to the people who want to learn those languages. @ArchilBeraia

Whippingdot

why didn't i get pinged for this...it is in my comment thread after all. Anyway yup absolutely correct i definitely know python turtle ;) @AvOcAdO506

JWZ6

@Bluelight4251 I also like it too. It's just that there are too many tutorials on it. das all

JWZ6
JWZ6

@Whippingdot I made a tutorial on python turtle lol

Whippingdot

hmmmm i don't think i will check it out cause I already know python turtle ;) @JWZ6

JWZ6

@Whippingdot oh gud for u :)

MultiLangCoder

Python literally scores lowest on the language efficiency index. While C goes all the way to the [email protected]

Whippingdot

I forgot python turtle now :) @JWZ6

JWZ6

Lol u can check it out @Whippingdot

JWZ6

yay

[deleted]

@JWZ6 Ha I See You, Hello

JWZ6
[deleted]

@JWZ6 Lmao

JWZ6

@alsike how did this get so popular

[deleted]

@JWZ6 The Tutorial-?

JWZ6
[deleted]

@JWZ6 Dunno, It's Pretty Cool Tho

JWZ6

a bit too basic in my opinion @alsike

[deleted]

@JWZ6 I Agree, Lacks Info Too, But It's Not Terrible

JWZ6

@alsike i mean yes

[deleted]

@JWZ6 Lol Ye

JWZ6
CatGirlMeow

I'm new and this is so confusing to me. BTW I don't know anything about codes.

robottommy150

is there good ones to make a video game?

NewbieLeo

print('{} good!'.format('Sounds'))

RuslanHaris

nice

prolomic

Cool and great lessons, but you can use teams/multyplayer programming to show it live!

jp1003

Nice

stoporinjail

Ok whoever's upvoting my repl by creating a lot of accounts, stop it.

stoporinjail

@TylerGibson99, @mahinhasan, @alo0911, @rameshvottem, @TerenceLin1, @Lem0nes and a few more don't do it ok? (sorry if you didn't do it)

theangryepicbanana

@stoporinjail how do you know they're doing that?

TylerGibson99

@stoporinjail Don't see why you're @ me even though I never did that

stoporinjail
stoporinjail

@theangryepicbanana 0 repls, no chosen languages that seems kinda sus

RohilPatel

Who says they're making many accounts? They could just be people wanting to learn about python. @stoporinjail

stoporinjail
stoporinjail

@RohilPatel but most of them have 0 repls and no preferred language that's a bit sus

RohilPatel

lmao no it's not. This isn't among us. @stoporinjail

Eddiecro

nerd

stoporinjail

why are you even on replit @Eddiecro

SamiOsman

@Eddiecro If you are mean do not be on replit. Don't talk trash if your jealous...admit it ;)

FlaminHotValdez

ah yes, another python tutorial to add on the hundreds that are already on replit

RohilPatel

Dang now I get to learn python for the 101st time @FlaminHotValdez

DivendraMangra

im new help me

stoporinjail

View the tutorial :) @DivendraMangra

JBloves27

Heyo, pretty noice tutorial, but few suggestions:
Add all the lessons in one post, add more text or information in the tutorial.

Hope this helps!

stoporinjail

@JBloves27 Good suggestion I'll try to add more stuff in each lesson

OldWizard209

Why has this even got 10 upvotes? I am not a hater or anything, but there are like a MILLION tutorials on Python on replit already. It is more than enough to actually make someone proficient in Python. People only make Python tutorials for cycles, because it is easy to learn. Like in this tutorial, half the things are TBD, TBD. LIke please make an actual tutorial that helps people. @stoporinjail

stoporinjail

@OldWizard209 As I mentioned, this is for beginners! Also, I haven't decided what to teach yet ok?

GhostKing007

I agree, python tutorials have come to the point where they're just being posted for cycles now. I rarely even look at tutorials now. (Your JS tutorial was pog tho)@OldWizard209

OldWizard209

If you havent decided what you will teach, then why would you make a tutorial in the first place? There are already so many python tutorials @stoporinjail

JBloves27

Yeah... @GhostKing007

RohilPatel

It's because everyone freaking likes python and that's what attracts the most viewers @OldWizard209

OldWizard209

Yes, but there are millions of Python tutorials on replit already, why bother to make one? @RohilPatel

RohilPatel

Lemme clarify - I'm 100% agreeing with you; not much more need for py tuts @OldWizard209

MaciahLawson

U wanna collab teaching people python?

Hilger45

11 Beginner Tips for Learning Python Programming
Make It Stick. Tip #1: Code Everyday. Tip #2: Write It Out. ...
Make It Collaborative. Tip #6: Surround Yourself With Others Who Are Learning. Tip #7: Teach. ...
Make Something. Tip #10: Build Something, Anything. Tip #11: Contribute to Open Source.
Go Forth and Learn!
https://www.myaarpmedicare.fyi/

saiveerabhotla

how do we join

techfacts

@saiveerabhotla I want to join pelase tel me process sir. https://jcpenneykiosk.ninja/

lucaspspider

i just like this because I know almost nothing about python

sgcoder1337

Thanks for the tutorial! I just started learning Python, so it is very useful!