0% found this document useful (0 votes)
5 views1 page

Python Programming

The document outlines a series of programming tasks for a Python course at Chadalawada Ramanamma Engineering College, focusing on various concepts including finding largest numbers, prime numbers, complex numbers, and string manipulation. It includes exercises on operators, functions, lists, tuples, dictionaries, and NumPy arrays. Each task requires students to write specific Python programs to demonstrate their understanding of the language and its functionalities.

Uploaded by

haribabugurju
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Python Programming

The document outlines a series of programming tasks for a Python course at Chadalawada Ramanamma Engineering College, focusing on various concepts including finding largest numbers, prime numbers, complex numbers, and string manipulation. It includes exercises on operators, functions, lists, tuples, dictionaries, and NumPy arrays. Each task requires students to write specific Python programs to demonstrate their understanding of the language and its functionalities.

Uploaded by

haribabugurju
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

CHADALAWADA RAMANAMMA ENGINEERING COLLEGE

(AUTONOMOUS)
Approved by AICTE, Accredited by NAAC with ‘A’ Grade, Permanently Affiliated to JNTUA,
Anantapuramu
Chadalawada Nagar, Renigunta Road, Tirupati – 517 506

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING


Python Programming( 23CA05305)

1) (a) Write a program in Python to find the largest element among three numbers.
(b) Write a program in Python to display all prime numbers within an interval.
(c) Write a program in Python to swap two numbers without using a temporary variable.
2) (a) Write a program in Python to add and multiply complex numbers.
(b) Demonstrate the following Operators in Python with suitable examples.
1) Arithmetic Operators 2) Relational Operators
3) Assignment Operators 4) Logical Operators
3) (a) Write a program in Python to print multiplication table of a given number.
(b) Demonstrate the following Operators in Python with suitable examples.
1) Bit wise Operators 2) Ternary Operator
3) Membership Operators 4) Identity Operators
4) (a) Write a program in Python to define a function with multiple return values.
(b) Write a program in Python to define a function using default arguments.
5) (a) Write a program in Python to define a function with multiple return values.
(b) Write a program in Python to find the length of the string without using any library
functions.
6) (a) Write a program to check if the substring is present in a given string or not.
(b) Write a program in Python to perform the given operations on a list:
Addition, Insertion and slicing.
7) (a) Write a program to check if the substring is present in a given string or not.
(b) Write a program in Python to perform any 5 built-in functions by taking any list.
8) (a) Write a program to create tuples (name, age, address, college) for at least two
members and concatenate the tuples and print the concatenated tuples.
(b) Write a program in Python to count the number of vowels in a string (No control flow
allowed).
9) (a) Write a program in Python to count the number of vowels in a string (No control
flow allowed).
(b) Write a program in Python to check if a given key exists in a dictionary or not.
10) (a) Write a program in Python to add a new key-value pair to an existing dictionary.
(b) Write a program in Python to sum all the items in a given dictionary.
11) Write a program in Python to demonstrate NumPy arrays creation using array() function.
12) (a) Write a program in Python to find min, max, sum, cumulative sum of array.
(b) Write a program to find the largest element among three Numbers.

Examiner – 1 Examiner - 2

You might also like