- Write a program to swap two numbers without taking a temporary variable.
- Write a program to display sum of two complex numbers.
- Write a program to create a byte type array, read, modify, and display the elements of the array
- Create a sequence of numbers using range datatype to display 1 to 30, with an increment of 2.
- Write a program to find out and display the common and the non common elements in the list using membership operators
- Create a program to display memory locations of two variables using id() function, and then use identity operators two compare whether two objects are same or not.
- Write a program that evaluates an expression given by the user at run time using eval() function.
- Write a python program to find the sum of even numbers using command line arguments.
- Write a menu driven python program which perform the following:Find area of circle, Find area of triangle, Find area of square and rectangle,Find Simple Interest
- Write a program to assert the user enters a number greater than zero.
- Write a program to search an element in the list using for loop and also demonstrate the use of “else” with for loop.
- Write a python program that asks the user to enter a length in centimeters. If the user enters a negative length, the program should tell the user that the entry is invalid. Otherwise, the program should convert the length to inches and print out the result. (2.54 = 1 inch).
Beginning with Python, Datatypes, Operators, I/O and Control statements
Subscribe to:
Posts (Atom)