Fundamentals of Python


Day#1

How to print Modifiers?

print(“A ‘single quote’ include a double quote”)

How to give user input ?

input(“what’s your name”)

What is subscript in python?

pulling a character from String is called subscript

How to find the data type of variable?

use type(customer_id)

What are the different mathematical operators used in python?

+, – , *, /, ** etc

print (6/3) => 2.0 -> always return float

what’s the difference between / and // ?

print (8/3) gives 2.6666666665

print(8//3) gives 2 (rounding near integer)

it’s called “floor division operator”


Leave a Reply

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