Beginner guideதொடக்கநிலை வழிகாட்டிशुरुआती गाइडప్రారంభకుల గైడ్শিক্ষানবিশ গাইডनवशिक्यांसाठी मार्गदर्शिकाಆರಂಭಿಕರ ಮಾರ್ಗದರ್ಶಿതുടക്കക്കാർക്കുള്ള ഗൈഡ്·Zero to HeroZero से Hero तकZero నుండి Hero వరకుZero থেকে HeroZero ते HeroZero ಇಂದ Hero ವರೆಗೆZero മുതൽ Hero വരെ

Python Basics for Beginners: A Complete GuidePython அடிப்படைகள்: தொடக்கநிலையாளர்களுக்கு முழு வழிகாட்டி

This guide covers all the Python basics in one place. Run each example right on this page and change it to see what happens.

இந்த வழிகாட்டியில் Python-ன் அடிப்படைகள் அனைத்தையும் ஒரே இடத்தில் பார்க்கலாம். ஒவ்வொரு பகுதியிலும் உள்ள code-ஐ இந்தப் பக்கத்திலேயே Run செய்து பாருங்கள்.

SPSkill Park AcademyErode · Chennai 12 min readநிமிட வாசிப்புमिनट में पढ़ेंనిమిషాల పఠనంমিনিটে পড়ুনमिनिटांत वाचाನಿಮಿಷದ ಓದುമിനിറ്റ് വായന Updatedபுதுப்பிக்கப்பட்டதுअपडेट किया गयाనవీకరించబడిందిআপডেট করা হয়েছেअद्ययावतನವೀಕರಿಸಲಾಗಿದೆപുതുക്കിയത് 6 Oct 2026

1. print(): showing output1. print(): திரையில் காட்டுதல்

print() shows whatever you put inside it. Text goes inside quotes.

print() உள்ளே எழுதியதைத் திரையில் காட்டும். Text-ஐ quotes உள்ளே எழுத வேண்டும்.

Try it yourselfநீங்களே முயற்சி செய்யுங்கள்ख़ुद करके देखेंమీరే ప్రయత్నించండిনিজে চেষ্টা করুনस्वतः करून पाहाನೀವೇ ಪ್ರಯತ್ನಿಸಿസ്വയം ചെയ്തുനോക്കൂ

Python
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

2. Variables and data types2. Variables மற்றும் data types

Variables store values. The main types are int (whole numbers), float (decimals), str (text) and bool (True/False).

Variable மதிப்புகளைச் சேமிக்கும். முக்கிய types: int (முழு எண்), float (தசம எண்), str (text), bool (True/False).

Try it yourselfநீங்களே முயற்சி செய்யுங்கள்ख़ुद करके देखेंమీరే ప్రయత్నించండిনিজে চেষ্টা করুনस्वतः करून पाहाನೀವೇ ಪ್ರಯತ್ನಿಸಿസ്വയം ചെയ്തുനോക്കൂ

Python
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

3. input(): reading from the user3. input(): user-இடமிருந்து படித்தல்

input() always returns text. Convert it with int() when you need a number.

input() எப்போதும் text-ஐத் தரும். எண் வேண்டுமெனில் int() மூலம் மாற்றுங்கள்.

Try it yourselfநீங்களே முயற்சி செய்யுங்கள்ख़ुद करके देखेंమీరే ప్రయత్నించండిনিজে চেষ্টা করুনस्वतः करून पाहाನೀವೇ ಪ್ರಯತ್ನಿಸಿസ്വയം ചെയ്തുനോക്കൂ

Python
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

4. Operators

+ - * / for maths; // for whole-number division; % for the remainder; ** for powers.

+ - * / கணக்கீடுகள்; // முழு எண் வகுத்தல்; % மீதி; ** அடுக்கு.

Try it yourselfநீங்களே முயற்சி செய்யுங்கள்ख़ुद करके देखेंమీరే ప్రయత్నించండిনিজে চেষ্টা করুনस्वतः करून पाहाನೀವೇ ಪ್ರಯತ್ನಿಸಿസ്വയം ചെയ്തുനോക്കൂ

Python
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

5. if, elif, else: decisions5. if, elif, else: முடிவெடுத்தல்

Indentation (spaces at the start of a line) matters in Python: it shows which code belongs to the if.

Python-ல் indentation (வரி முன் இடைவெளி) முக்கியம்; அது எந்த code if-க்குள் உள்ளது என்று சொல்லும்.

Try it yourselfநீங்களே முயற்சி செய்யுங்கள்ख़ुद करके देखेंమీరే ప్రయత్నించండిনিজে চেষ্টা করুনस्वतः करून पाहाನೀವೇ ಪ್ರಯತ್ನಿಸಿസ്വയം ചെയ്തുനോക്കൂ

Python
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

6. Loops: for and while6. Loops: for மற்றும் while

for runs once for each item in a sequence; while runs as long as its condition is true.

for ஒரு வரிசையில் உள்ள ஒவ்வொன்றுக்கும் இயங்கும்; while condition true ஆக இருக்கும் வரை இயங்கும்.

Try it yourselfநீங்களே முயற்சி செய்யுங்கள்ख़ुद करके देखेंమీరే ప్రయత్నించండిনিজে চেষ্টা করুনस्वतः करून पाहाನೀವೇ ಪ್ರಯತ್ನಿಸಿസ്വയം ചെയ്തുനോക്കൂ

Python
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

7. Lists and dictionaries7. Lists மற்றும் dictionaries

A list stores many values in order; a dictionary stores key-value pairs.

List பல மதிப்புகளை வரிசையாகச் சேமிக்கும்; dictionary key-value ஜோடிகளாகச் சேமிக்கும்.

Try it yourselfநீங்களே முயற்சி செய்யுங்கள்ख़ुद करके देखेंమీరే ప్రయత్నించండిনিজে চেষ্টা করুনस्वतः करून पाहाನೀವೇ ಪ್ರಯತ್ನಿಸಿസ്വയം ചെയ്തുനോക്കൂ

Python
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

8. Functions

Create a function with def and reuse it as often as you like.

def மூலம் function உருவாக்கி, மீண்டும் மீண்டும் பயன்படுத்தலாம்.

Try it yourselfநீங்களே முயற்சி செய்யுங்கள்ख़ुद करके देखेंమీరే ప్రయత్నించండిনিজে চেষ্টা করুনस्वतः करून पाहाನೀವೇ ಪ್ರಯತ್ನಿಸಿസ്വയം ചെയ്തുനോക്കൂ

Python
Output Loading Python (first time takes a few seconds)
Press Run to see the result here.

What next?அடுத்து என்ன?

To practise each basic with challenges, start Skill Park's free Python course. Then raise your Skilled-score with practice problems and mock tests.

இந்த அடிப்படைகளை ஒவ்வொன்றாக, challenges உடன் பயிற்சி செய்ய Skill Park-ன் இலவச Python course-ஐத் தொடங்குங்கள். பிறகு practice problems மற்றும் mock tests மூலம் உங்கள் Skilled-score-ஐ உயர்த்துங்கள்.

Frequently asked questionsஅடிக்கடி கேட்கப்படும் கேள்விகள்अक्सर पूछे जाने वाले सवालతరచుగా అడిగే ప్రశ్నలుপ্রায়ই জিজ্ঞাসিত প্রশ্নनेहमी विचारले जाणारे प्रश्नಪದೇ ಪದೇ ಕೇಳುವ ಪ್ರಶ್ನೆಗಳುപതിവ് ചോദ്യങ്ങൾ

How long does it take to learn Python basics?Python அடிப்படைகளைக் கற்க எத்தனை நாள் ஆகும்?

With 30 minutes a day, most beginners are comfortable with the basics in 2–3 weeks.

தினமும் 30 நிமிடம் கற்றால் 2–3 வாரங்களில் அடிப்படைகள் புரியும்.

What is an IndentationError?Indentation error என்றால் என்ன?

It happens when lines inside if, for or def are not indented consistently (use 4 spaces).

if, for, def போன்றவற்றின் உள்ளே உள்ள வரிகளுக்குச் சரியான இடைவெளி (4 spaces) இல்லாதபோது வரும் பிழை.

What is the difference between a list and a tuple?Python-ல் list மற்றும் tuple வேறுபாடு என்ன?

A list can be changed; a tuple can't.

List-ஐ மாற்றலாம்; tuple-ஐ மாற்ற முடியாது.

Keep readingமேலும் படியுங்கள்और पढ़ेंఇంకా చదవండిআরও পড়ুনआणखी वाचाಇನ್ನಷ್ಟು ಓದಿകൂടുതൽ വായിക്കൂ