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
147

Python Lesson!

stoporinjail
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:

print("value")

Example:

print("Hello world")

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:

variable_name = "Value"

or for numbers:

variable_name = number

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

print(variable_name)

or

print(variable_name, "Hi")

Examples:

name = "Bob" print("Hi", name)

Output: Hi, Bob

F Strings

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

How to:

variable_name = "value" print(f'your text here {variable_name}')

You must use the f before the quotes.

Example:

name = 'Bob' print(f"Hello, {name}")

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!

2 years ago

Voters

Comments

TopNew
1
Satterfield
Satterfield

Thanks for sharing really information.
https://www.upsers.tips/

11 months ago
1
boysstreet
boysstreet

Thank you for providing this guide! It's very beneficial now that I've just begun learning Python. smash karts

11 months ago
1
JohnDGomez
JohnDGomez

Thanks for the info.

1 year ago
1
unknownplayer4
unknownplayer4

this awesome THX!

1 year ago
1
Hilger45
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/

1 year ago
1
techfacts
techfacts

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

1 year ago
1
lucaspspider
lucaspspider

i just like this because I know almost nothing about python

1 year ago
1
sgcoder1337
sgcoder1337

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

1 year ago
2
CatGirlMeow
CatGirlMeow

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

1 year ago
2
robottommy150
robottommy150

is there good ones to make a video game?

2 years ago
Load more