welcome to new blog
Today we will learn about:
👉 control structures
👉 functions
👉 modules
👉 file handling
Control structures
Control structures are a way to specify the flow of control in programs based on certain parameters or conditions. In Python, there are three types of control structures: sequence, selection and iteration1.
- Sequence: The program executes statements one after another in the order they appear.
- Selection: The program chooses between two or more alternative paths based on some condition. For example, the
ifstatement. - Iteration: The program repeats a block of statements until some condition is met. For example, the
forandwhileloops.
functions
you can learn about function by clicking a link given below:
click here👉👉 functions
module
- A Python module is a file containing Python definitions and statements. A module can define functions, classes, and variables. A module can also include runnable code. Grouping related code into a module makes the code easier to understand and use. It also makes the code logically organized.
file handling
File handling in Python is a powerful and versatile tool that can be used to perform a wide range of operations. However, it is important to carefully consider the advantages and disadvantages of file handling when writing Python programs, to ensure that the code is secure, reliable, and performs well.
thnx for watching
follow for more
-by yash rajput

No comments:
Post a Comment