-
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? +, –…
-
Let’s learn python datatypes
Python for Beginners Python has several built-in datatypes but most commonly used built-in data types are:
-
Day#3
Python for Beginners How to print a multi line block in python?| Three single quotes will print the multi line block How to achieve randomization in python (Generate pseudo-random numbers)? | using random module, import the random module. | some most common and useful random functions : How to get the previous state of random…
-
f-string function
What is f-string function in python? > In Python, an *f-string*, or *formatted string literal*, is a string that is prefixed with the letter f or F. These strings may contain replacement fields, which are expressions delimited by curly braces {}. When the string is evaluated, the expressions are replaced with their values. The…
-
Day#2
Mathematical operator precedence In Python, the mathematical operator precedence is determined by the PEMDAS rule, which stands for Parentheses, Exponents, Multiplication and Division, and Addition and Subtraction. Here’s how it works in Python: It’s important to note that in Python, operators with the same precedence level (like multiplication and division) are evaluated based on their…