Python for Beginners · Lesson 1 of 8
Run real Python code and see it work, within five minutes, with nothing installed.
Most people who try to learn programming quit before they write a single line — not because coding is hard, but because *installing* things is hard. So we are skipping that entirely.
Open your browser and go to any free online Python editor (we recommend the one linked in your BvLogic dashboard). You will see a box to type in and a Run button. That is all you need for this whole course, and it works on a phone.
Type exactly this:
print("Hello, Pakistan")
Press Run. Below, you will see:
Hello, Pakistan
That is a program. A real one. Let us look at what you just did.
print is an instruction — it tells Python to display something. The round brackets hold what you want displayed. The quote marks tell Python "this is text, not an instruction".
Try removing the quote marks and running it again. You will get an error. Do it — seeing the error now, on purpose, makes it far less frightening when it happens by accident later.
Now try:
print("My name is Ayesha")
print("I am learning Python")
Two lines, run top to bottom, in order. That is the second thing to understand about programming: Python does exactly what you say, in the order you say it. It never guesses what you meant.
That is the whole idea. Everything else in this course is just more interesting instructions.
Write three print lines: your name, your city, and one thing you want to build. Run it. Then deliberately break one line (remove a bracket) and read the error before fixing it.
Create your free BvLogic ID to take the quiz and record your score.
Create your BvLogic ID