Write a Python program to add ‘ing’ at the end of a given string (length should be at least 3). If the given string already ends with ‘ing’ then add ‘ly’ in ...
Write a Python program to input a sentence from the user and then create an encoded version of the sentence by using the following rules.
replace() function in python is used for replace the charecter or a set of charecter(called string) with other chracter or set of character of a specified s ...
Here we print a triangle using numbers. Each row content (row*2)-1 nos of columns. Now we draw the requried spaces in the patterns and create the pyramids.
Write a program to input a name from user, now convert the name into initial format. capitalize() methods and splid() method use for this program.
Write a Python program to input a number and count the number of digits which are multiple of 3. For eg if the number is 2368965, then the output will be 4.
1015
Dibyendu Banerjee
09/12/2020
Write a program to input the lower and upper limits of a range of numbers (including the limits), and then print only those numbers in that range whose su ...
Write a program to input an even number N from the user. Next using a loop simultaneously generate all numbers from (N//2-1) to 1 and (N//2+1) to (N-1).
Write a Python program to initialise a list with the following values in the code: L = [6, 8, 23, 45, 27, 4, 19, 34, 24, 5, 20, 10, 32, 15, 18, 21].
In this program, we should accept a string using input() method. Now read the line character by character and count the consonant characters (which are not ...
In this program, we should accept a string using input() method. Now read the line character by character and count the vowel character (a, e, i, o, u) in it.
Write the Python code to generate the terms of the following series up to n terms (n is user input) using a for loop and find the sum of the terms of the se ...
Write Python code to print terms of the Lucas Series up to n terms Also, find the sum of the even value and odd value terms.
Write a python program to print the pattern shown in diagram. Number of column in a row is equal to the row number.
Write a python program to print the pattern shown in diagram. Number of column in a row is equal to the row number.
Write a python program to print the pattern shown in diagram. Number of column in a row is equal to the row number.
First two numbers of the fibonacci sequence are 0 and 1. Each numbers of the fibonacci sequence genarated by adding the previous two numbers.
WAP in python to find the divisor of A Number, WAP in python to check a number is prime or not and WAP in python to print all prime numbers from 10 to 100.
Write a program to find out the sum of the digits of a number. Write a program to find out reverse of a number. Write a program to check a number is palindr ...
Write a program in Python to swap two given numbers. Swap numbers is very easy in python.
If-else is the basic decision making block in python. We can use one or more conditions to take a decision, if this particular block is executed or not.
In any computer programming language, data type defines how a data store in memory. How much memory size occupied by a data is also determined by data types.
Python is a high-level language. It is a general-purpose language, we can use this to develop any kind of apps. Python is a very easy to learn and open-source.