Unit 1 - Lesson 5

5.1.1. Understanding Types of Data Types

(a) In Python, we need not specify the data type of the variable.
(d) type() function in Python is used to know which datatype of value the variable

5.2.1. Numbers

a = 365
#Print type of a
print(type(a))
a = 345.65
#Print type of a
print(type(a))

a = 45 + 5j
#Print type of a
print(type(a))

5.3.1. String data type

(c) Encoding means converting strings of characters into numbers.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.