This Repository contains the Codes of My GE Practical Examination of Python.
Write a function that finds the sum of the
a) first n odd terms
b) first n even terms
c) 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13.. till n-th term
Consider a tuple t1=(1,2,5,7,9,2,4,6,8,10). Write a program to perform following operations:
a. Print half the values of tuple in one line and the other half in the next line.
b. Print another tuple whose values are even numbers in the given tuple.
c. Concatenate a tuple t2=(11,13,15) witht1.
d. Return maximum and minimum value from this tuple.
Write a menu driven program to perform the following functions on strings:
a. Find the length of string
b. Return maximum of three strings
c. Accept a string and replace every successive character with ‘#’ Example- For Given string ‘Hello World’ returned string is ‘H#l#o W#r#d’.
d. Find number of words in the given string