Category: python very small program assignments
Shift Numbers in Python | Assignment Expert
Shift numbers in Python mean we need to perform bitwise shift operations on numbers. There are two types of shift possible, bitwise left shift and…
Temperature Conversion in Python
Today, we will see how to do temperature conversion in Python. We will convert from one unit of temperature to other units of temperature in…
Special Characters in Python
Also Read:
Sum of Prime Numbers in the Input in Python
In this post, we will see how to take the Sum of Prime Numbers in the Input in Python. This means we will ask the…
Numbers in String-1 in Python
This is a very simple question, you need to find the sum and average of all digits that appear in a string. For example, Now,…
Replace Elements with Zeros in Python
Today, we will see how to replace elements with zeros in Python. We will write two programs for that, in the first one, we will…
Remove Words in Python
Today, we will see how to remove a sub-string or word in Python from a string or sentence. We will use replace() method from Python,…
Print Digit 9 in Python | Assignment Expert
Code to print digit 9 in Python is: Output: Also Read:
First Prime Number in Python | Assignment Expert
The prime number means a number that is divisible by itself and 1 only e.g. 2, 3, 5, 7, 11, 13, etc. So, the first…
Simple Calculator in Python
This is a simple calculator in Python, we have used the eval() method from Python to calculate all expressions. This method takes an expression in…