Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-Practical-Exam

This Repository contains the Codes of My GE Practical Examination of Python.

Question1

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

Question2

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. 

Question3

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

About

This Repository contains the Codes of My GE Practical Examination of Python.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages