๐Ÿ“Š We use cookies & analytics to improve your experience. Learn more
Latest

Free course ยท Beginner

Python for Absolute Beginners

๐Ÿ› Way2Freshers Academy โฑ 6 weeks โญ 4.8 ๐Ÿ‘ฅ 12,400 learners ๐ŸŽ“ Certificate

Free 5 modules ยท 15 lessons Start now โ†’

What you will learn

  • Install Python and run a script on your own machine โ€” and in a browser when you have to borrow a computer
  • Use variables, strings, numbers, lists and dictionaries without looking up the syntax every time
  • Make a program decide and repeat with if/else and loops, instead of testing it by hand
  • Write your own functions, so a program you already wrote can be reused instead of retyped
  • Read and clean a real CSV file, then print a summary an interviewer would accept
  • Explain any line of your own code out loud โ€” the skill technical interviews actually test

Course curriculum

5 modules ยท 15 lessons ยท a worked example and a practice task in every lesson

Module 2Making the program decide2 of 53 lessons

Week 2 โ€” conditions and loops. This is where a script starts doing work instead of taking notes.

  1. if, elif, else

    A condition is a yes/no question the program asks itself. Indentation is the syntax in Python โ€” four spaces make the block, and nothing else does.

    The lesson

    A condition is a yes-or-no question the program asks itself, and the branch it takes decides what happens next. if marks >= 75: prints a distinction, elif marks >= 40: prints a pass, else: handles everything left. Python runs the FIRST true branch and stops looking, which is why the order of the conditions is part of the logic, not decoration.

    The syntax rule that trips everyone is indentation. In most languages a block is marked with braces; in Python it is four spaces. Your editor inserts them for you if you end a line with a colon โ€” take the help. Conditions combine with and, or and not, and you can compare text as well as numbers: if city.lower() == "pune": ignores how the person capitalised it.

    The mistake is putting the broad condition first: with if marks >= 40 written above if marks >= 75, a distinction never reaches its own branch. Read your conditions top to bottom and ask what each one has already ruled out.

    Python
    marks = 82
    
    if marks >= 75:
        print("Distinction")
    elif marks >= 40:
        print("Pass")
    else:
        print("Needs work")

    Example if marks >= 40: print("Pass") elif marks >= 75: print("First class") else: print("Needs work") โ€” order matters, because the first true branch wins.

    Practice Write a program that labels a number as positive, negative or zero, then extend it to label a mark as fail, pass, first class or distinction.

  2. for and while loops

    A for loop walks through a collection; a while loop repeats until a condition stops being true. Repeating something 100 times by hand is not a skill, it is an error waiting to happen.

    The lesson

    A for loop walks through a collection and stops by itself: for n in range(1, 6): runs five times with n taking 1 to 5 โ€” note that range excludes the last number, which is deliberate and worth remembering. A while loop repeats for as long as its condition stays true, and you are responsible for making it false; while count <= 10: needs a line inside that increases count, or the program runs for ever.

    The practical difference is which one you reach for. Looping over a known set โ€” ten marks, the rows of a file, the questions in a quiz โ€” is a for. Repeating until something happens โ€” until the user types quit, until a balance reaches zero โ€” is a while. Both accept break to exit early and continue to skip to the next round, and both are why a computer can do in a second what takes you an hour.

    The two mistakes to know: an endless while loop because nothing inside changes the condition (Ctrl+C stops it โ€” that is not a crash), and off-by-one errors from forgetting that range(1, 5) stops at 4. When a loop misbehaves, print the counter on the first three rounds instead of guessing.

    Python
    for n in range(1, 6):      # 1, 2, 3, 4, 5 โ€” the last number is excluded
        print(n, n * n)
    
    count = 1
    while count <= 3:
        print("Round", count)
        count += 1              # without this line the loop never ends

    Example for n in range(1, 6): print(n * n) prints the first five squares. for name in ["Asha", "Ravi"]: walks a list, one item at a time.

    Practice Print a table of 7 from 1 to 10 with a for loop, then print the same table with a while loop and decide which reads better.

  3. Lists โ€” one name, many values

    A list holds an ordered set of values: marks = [72, 88, 65]. Indexing starts at 0, and slicing gets a piece: marks[0:2] is the first two.

    The lesson

    A list keeps several values in order under one name: marks = [72, 88, 65]. Position one is written marks[0], because counting starts at zero, and a slice gets a piece: marks[0:2] is the first two values. len(), sum(), sorted(), append() and remove() cover almost everything a first job asks for.

    What makes a list powerful is that the computer does the repetitive work: sum(marks) / len(marks) is the average in one line, and it still works when the list has ten thousand values instead of three. Looping over a list โ€” for mark in marks: โ€” is the pattern behind every marksheet, attendance sheet and report you will ever write.

    The mistakes are small and constant: using marks[1] when you meant the second value and getting the first, trying to sum() a list of text because the numbers came from an input file, and editing a list while looping over it. Convert first with [int(x) for x in marks], then calculate.

    Python
    marks = [72, 88, 65, 90]
    
    print(marks[0])               # 72 โ€” counting starts at 0
    print(marks[0:2])             # [72, 88]
    print(max(marks), min(marks), round(sum(marks) / len(marks), 1))
    
    marks.append(77)              # add one
    marks.sort(reverse=True)      # highest first
    print(marks)

    Example sum(marks) / len(marks) gives the average in one line โ€” the same three lines of manual addition a beginner usually writes first.

    Practice Store ten marks in a list and print the highest, the lowest and the average without writing a single if statement by hand.

Show all modules on one page

About Python for Absolute Beginners

Write real Python programs โ€” read a data file, clean it and print a summary โ€” in six weeks, with no coding experience to start from.

School and college students, non-IT graduates and career switchers who have never written a line of code and want an honest first foothold in programming.

What you will be able to do at the end

  • Install Python and run a script on your own machine โ€” and in a browser when you have to borrow a computer
  • Use variables, strings, numbers, lists and dictionaries without looking up the syntax every time
  • Make a program decide and repeat with if/else and loops, instead of testing it by hand
  • Write your own functions, so a program you already wrote can be reused instead of retyped
  • Read and clean a real CSV file, then print a summary an interviewer would accept
  • Explain any line of your own code out loud โ€” the skill technical interviews actually test

How the course is structured

5 modules and 15 lessons, arranged so each one ends with something you have built. Every lesson carries a worked example and a practice task โ€” the practice is the course, the reading is only the setup. Plan for 6 weeks ยท about 6 hours a week.

The full syllabus โ€” every lesson, its example and its practice task โ€” is in the Course curriculum below. Nothing is locked and nothing needs an account.

Your weekly routine

  • Two weeknights of 90 minutes: one lesson, then its practice task written out by hand before typing it in.
  • One 3-hour weekend block: finish the module project for that week and push the code.
  • Fifteen minutes on the day after a session re-reading your own code and rewriting one function more cleanly.

What you will have built by the end

  • Expense tracker โ€” records, saves and summarises to a CSV
  • Quiz program โ€” reads questions from a file and reports an answer-wise score
  • A published GitHub repository with a README a recruiter can follow

Where this leads for a fresher

  • Support and manual-testing roles that need scripting
  • Junior Python or automation trainee
  • Data-entry-to-data-analyst transitions
  • Internships where the first task is scripting a repetitive process

Titles vary between companies; the evidence does not. A deployed project, a set of queries you can explain, or a case study with real testing behind it is what a fresher interview has to work with.

Frequently asked questions

Do I need to be good at maths?

No. Nothing in this course goes past averages and percentages. Maths matters for machine learning, which is a later, separate step โ€” treating it as a gate to programming is the single most common reason students never start.

I only have a phone. Can I still do it?

You can learn and read on a phone, but you must type the code, and typing a loop on a phone keyboard is painful. Plan for two hours a week on any shared computer โ€” a college lab, a friend's laptop or a cyber cafรฉ. Writing it yourself is the part that teaches.

Is this course free?

Yes. The lessons, examples and practice tasks are free to read and to follow. The certificate, where a course offers one, is booked separately from the course page.

How do I know if I am actually ready for a job after this?

Take the free Career Pulse check. It scores your skills, communication and goal clarity against the roles you are aiming for and returns a roadmap of exactly what to fix first. Six weeks of Python with nothing else built still scores low โ€” and knowing that before you apply is worth more than a certificate.

Not sure which of these you need first? The free Career Pulse check scores your skills, communication and goal clarity in about three minutes and tells you which gap to close first. Take the free check.