Skip to content

pulkitpareek18/python-lab-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

python-lab-file

This repository contains the code which I've written in my Python Lab during Engineering.

Lab 1

Questions and Solutions

  1. Find the length of a tuple - q1.py
  2. Concatenate two tuples - q2.py
  3. Access an element in a tuple - q3.py
  4. Count the number of occurrences of an element in a tuple - q4.py
  5. Check whether an element exists in a tuple or not - q5.py
  6. Find common elements between two tuples - q6.py
  7. Find the sum of all elements in a tuple - q7.py
  8. Merge two tuples and remove duplicates - q8.py

Lab 2

Questions and Solutions

  1. Check whether a number is even or odd - q1.py
  2. Print all even and odd numbers from 1 to 100 separately - q2.py
  3. Print all the prime numbers between 1 and 100 - q3.py
  4. Check whether a given number is prime or not - q4.py
  5. Find factorial of a number n - q5.py
  6. Print Fibonacci series up to n terms - q6.py
  7. Check whether a number is palindrome or not - q7.py
  8. Move all the duplicate values to the end of the list - q8.py
  9. Compare two equal size lists and print the first index where they differ - q9.py
  10. Increment the elements of list with a specified number - q10.py
  11. Check whether a number is present in the list or not and print the position - q11.py
  12. Replace all entries in the list with 10 that are greater than 7 - q12.py
  13. Display options for inserting or deleting elements in a list - q13.py

About

This repository contains the code which I've written in my Python Lab during Engineering.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages