Data Sci Lab 3
Data Sci Lab 3
Lab No: 03
OBE MARKS
Introduction:
Python is a versatile and widely-used programming language that allows developers to perform various
tasks, from simple calculations to complex data manipulation. One of the fundamental features that
enable this versatility is the use of conditional statements. In this article, we will explore how to harness
the power of conditional statements in Python, helping you make your code more flexible and responsive.
Procedure:
Open the python compiler of your own choice.
Then write a script for the first task.
Conclusion:
In conclusion, conditional statements are a powerful tool in Python that allows you to add decision-
making capabilities to your code. By using "if," "elif," and "else" statements, you can create dynamic and
responsive applications that react to different situations. Different examples/ tasks were performed for the
else and elif statements and the programs were written for these tasks.