0% found this document useful (0 votes)
8 views2 pages

Python Basics for Problem Solving

The document outlines a course on Problem Solving Using Python, covering five units. Unit 1 introduces Python basics, including algorithms and data types; Unit 2 discusses control statements and loops; Unit 3 focuses on functions; Unit 4 covers objects, classes, and file handling; and Unit 5 explores dictionaries, sets, object-oriented programming, and recursion.

Uploaded by

amaak6314
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Python Basics for Problem Solving

The document outlines a course on Problem Solving Using Python, covering five units. Unit 1 introduces Python basics, including algorithms and data types; Unit 2 discusses control statements and loops; Unit 3 focuses on functions; Unit 4 covers objects, classes, and file handling; and Unit 5 explores dictionaries, sets, object-oriented programming, and recursion.

Uploaded by

amaak6314
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

SLOW LEARNER SPECIAL NOTES

Problem Solving Using Python (BCE-CSC01)

UNIT 1 – BASICS OF PYTHON

• Computer solves problems step-by-step.

• Algorithm = simple steps to solve a problem.

• Flowchart = picture of steps.

• Python is easy, simple, and beginner-friendly.

• Variable = name to store data.

• Data types: int, float, string.

• Expression = calculation part.

UNIT 2 – CONTROL STATEMENTS

• if = to check a condition.

• if-else = two options.

• elif = many conditions.

• Loop = repeat same work.

• while loop = repeats until condition becomes false.

• for loop = repeats fixed number of times.

UNIT 3 – FUNCTIONS

• Function = block of code to reuse.

• Use ‘def’ to create a function.

• return = gives output from a function.

• Arguments = data you send to function.

• Default argument = value already fixed.

UNIT 4 – OBJECTS & FILES

• Object = real-world item in program.

• Class = model to create objects.


• Module = file that has Python code.

• File handling: open, read, write, close.

• Exception = error at runtime.

UNIT 5 – DICTIONARIES, SETS, OOP, RECURSION

• Dictionary = data in key:value pairs.

• Set = unique items.

• OOP = class + object + inheritance + polymorphism.

• Recursion = function calling itself.

You might also like