4 Python Program

1. Write a program to count the number of ‘e’ s in this string:“With all this content, both new and old, there are more than just product launches for May the Fourth. “

2. Ask the user to enter an integer, convert that number to binary.Enter any decimalnumber : 20
Equivalent binary number to 20 is : 101003.

3. Use the array givenMylist = [4,6,23,45,23,34,56,78,95,34]
Write a program to search this array to see if 78 is an element, if it is display78 is found in position 74.

4.Create a python list with 100 elements using the random number generation function.

×
New Download