Problem:- Problem Description Given a series of integer pairs A and B , output the…
In this program we change the time which is the 12 hour format into 24 hour format C…
What is Bubble sort :- Click here Code:- def bubbleSort (arr): n = len (arr)…
Code:- # function of the sieve of eratosthenes def SOE ( n ): mylist= [] fo…
what is fibonacci series:- In the fibonacci series every elem…
what is fibonacci series:- In the fibonacci…
tower of hanoi :- Rule:- The problem is to move all the di…
Code:- print ( "Enter elements of the list" ) mylist= list ( map ( int , in…
code:- mystring= "Easycodingzone" mystring=mystring [ : : -1 ] print ( my…
code:- mystring= input ( "Enter a string\n" ) mylist=mystring.split () myli…
We have to count number of words which is ending with 'Y' or 'y'. Exa…
For Example:- 375 days is equal to 1 year 1 week and 3 days (ignore leap year)…
original tuple=(1,2,3,4) output=1234 Code:- mytuple= ( 1 , 2 , 3 ) num= 0 for i in…
Code:- mystring= "Easycodingzone" mytuple= tuple ( x for x in mystring ) …
Code:- method1:- mytuple= ( "easy" , "coding" , "zone"…
Code:- n= int ( input ( "Enter number of elements" )) mylist= [] for i in…
Code:- print ( "Enter element of the list" ) mylist= list ( map ( int , in…
Social Plugin