Programming Lab

  • Home
  • About Us
  • Contact Us
  • Privacy Policy

Beginning with Python, Datatypes, Operators, I/O and Control statements



  1. Write a program to swap two numbers without taking a temporary variable.
  2. Write a program to display sum of two complex numbers.
  3. Write a program to create a byte type array, read, modify, and display the elements of the array
  4. Create a sequence of numbers using range datatype to display 1 to 30, with an increment of 2.
  5. Write a program to find out and display the common and the non common elements in the list using membership operators
  6. 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.
  7. Write a program that evaluates an expression given by the user at run time using eval() function. 
  8. Write a python program to find the sum of even numbers using command line arguments.
  9. 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
  10. Write a program to assert the user enters a number greater than zero.
  11. Write a program to search an element in the list using for loop and also demonstrate the use of “else” with for loop.
  12. 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).
Home
Subscribe to: Posts (Atom)

Contact Form

Name

Email *

Message *

Search This Blog

Blog Archive

  • ▼  2020 (3)
    • ▼  December (3)
      • Welcome to Programming Lab
      • Java Programming
      • Advanced C Programming

About Me

Dr. Darshana Patel , Dr. Bhavik Pandya
View my complete profile
Simple theme. Theme images by luoman. Powered by Blogger.