CodeTantra Python Programming L5 Solution

Hello Coders, In this blog post, you will find all the Solutions to the L5 questions of the Codetantra Python Programming Course. Here are the answeres to these questions:-

Codetantra python solution L5

Codetantra python programming L5 solution

Q1:- L5/Different Data types/Understanding Types of Data Types :- Select all the correct Statements from the given options

In Python, we need not specify the data type of the variable

The return type of type() function is string

In Python we have varchar data type.

type() function in Python is used to know which datatype of value the variable holds.

Q2:- L5/Numbers/Numbers :- Write the missing code in the given program to know which class the given variable a belongs to

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))

Q3:- L5/Strings/String data type :- Select all the correct statements from the given options.

a= A is a valid character in Python.

str=Welcome to python’s world is a valid string creation.

Encoding means converting strings of characters into numbers.

Triple quotes are used for only multi-line strings.

Hope this blog post was helpful to you and you have got the answer to your question. Thank you for visiting our blog. If you have any doubts about any coding questions then let us know in the comments section we will answer them as soon as possible. Till then check out our more blog posts.

Leave a Comment

Your email address will not be published. Required fields are marked *