Python learning portal

Python Programming Course

Learn Python step by step, the same way we learn it in class. Every lesson has simple explanations, real code examples you can copy and run in your browser, and the expected output.

Start with Chapter 1, practise every example at home, and mark each lesson as complete to track your progress.

कक्षामा सिकेजस्तै, पाइथन चरणबद्ध रूपमा सिक्नुहोस्। हरेक पाठमा सरल व्याख्या, कपी गरेर ब्राउजरमै चलाउन मिल्ने कोड उदाहरण र अपेक्षित आउटपुट छन्।

अध्याय १ बाट सुरु गर्नुहोस्, हरेक उदाहरण घरमा अभ्यास गर्नुहोस् र आफ्नो प्रगति हेर्न पाठ पूरा भएको चिन्ह लगाउनुहोस्।

17Chapters
1Lessons
1Code examples
Your progress
Saved in this browser only. No sign-up needed.
Course outline

Chapters

What Python is, where it is used and why it is a great first programming language.
पाइथन के हो, कहाँ प्रयोग हुन्छ र किन यो पहिलो प्रोग्रामिङ भाषाका लागि उत्तम छ।
Lessons coming soon
Install Python, set up VS Code and run your first Python file.
पाइथन इन्स्टल गर्ने, VS Code सेटअप गर्ने र पहिलो पाइथन फाइल चलाउने।
Lessons coming soon
Indentation, statements and writing helpful comments.
इन्डेन्टेसन, स्टेटमेन्ट र उपयोगी कमेन्ट लेख्ने तरिका।
Lessons coming soon
Store values in variables and work with numbers, text and True/False values.
भेरिएबलमा मान राख्ने र नम्बर, टेक्स्ट तथा True/False मानसँग काम गर्ने।
Lessons coming soon
Chapter 5

Operators

Arithmetic, comparison, logical and assignment operators.
अंकगणितीय, तुलनात्मक, तार्किक र असाइनमेन्ट अपरेटरहरू।
Lessons coming soon
Make decisions in your program with if, elif and else.
if, elif र else प्रयोग गरेर प्रोग्राममा निर्णय गर्ने।
Lessons coming soon
Repeat tasks with for and while loops, break and continue.
for र while लुप, break र continue प्रयोग गरेर काम दोहोर्‍याउने।
1 lesson
Chapter 8

Strings

Create, slice, format and change text.
टेक्स्ट बनाउने, काट्ने (slicing), फर्म्याट गर्ने र परिवर्तन गर्ने।
Lessons coming soon
Keep many values together and choose the right collection.
धेरै मानहरू एकै ठाउँमा राख्ने र सही कलेक्सन छान्ने।
Lessons coming soon
Chapter 10

Dictionaries

Key-value data for real-world records such as students and marks.
विद्यार्थी र अंकजस्ता रेकर्डका लागि key-value डाटा।
Lessons coming soon
Chapter 11

Functions

Write reusable blocks of code with parameters and return values.
प्यारामिटर र return मानसहित बारम्बार प्रयोग गर्न मिल्ने कोड लेख्ने।
Lessons coming soon
Import built-in modules, create your own and install packages with pip.
बिल्ट-इन मोड्युल इम्पोर्ट गर्ने, आफ्नै बनाउने र pip ले प्याकेज इन्स्टल गर्ने।
Lessons coming soon
Chapter 13

File Handling

Read from and write to text files safely.
टेक्स्ट फाइल सुरक्षित रूपमा पढ्ने र लेख्ने।
Lessons coming soon
Chapter 14

Exception Handling

Handle errors calmly with try, except, else and finally.
try, except, else र finally प्रयोग गरेर त्रुटि (error) सम्हाल्ने।
Lessons coming soon
Classes, objects, inheritance and other OOP ideas.
क्लास, अब्जेक्ट, इनहेरिटेन्स र OOP का अन्य अवधारणा।
Lessons coming soon
Build small real-world projects step by step.
साना वास्तविक प्रोजेक्टहरू चरणबद्ध रूपमा बनाउने।
Lessons coming soon
Chapter 17

Nepali

Lessons coming soon