Wednesday, 26 January 2022
Python practice programs for beginners - Day2
Welcome to the 30-day challenge of Python practising for beginners.
Day 1 Solution:
Python practice programs for beginners - Day2
Data types:
In the previous post, we practised variables. In this post, we will practice data types.
The type of data we are storing in the variable is called Data type.
Text kind of data is called as String, whole numbers such 5, 10 are called as Integers. Decimal valued data are called the float. True or False kinds of data are called Boolean.
to check the type of your data stored in the variable you can use type(variable_name) inside the print function.
Example:
Output:
Practice Program - Day 2
Find the different types of data for the Day 1 program.
Also try to use Float, Boolean.
Try to complete the task.
The output will be displayed in the next post.
Subscribe to:
Post Comments
(
Atom
)
nice. all the best.
ReplyDelete