Python Workbook: Exercises For Beginners With Solutions
- Edition: 1
- Language: English
- Publication Date: 2021-05-26
- ISBN-10: B0961VT3GJ
This book contains coding examples for beginners to practice along wth complete source code and solution.
These exercises are useful during interview and examination also.
Table Of Contents
List Data Type:
Write a Python program to find the largest number from a list.
Write a Python program to find the smallest number in a list.
Write a Python program to multiply all the items in a list.
Write a Python program to remove duplicates from a list.
Write a Python program to check if a list is empty or not.
Dictionary Data Type:
Write a Python program to add a key to a dictionary.
Write a Python program to remove a key from a dictionary.
Write a Python program to multiply all the items in a dictionary.
Write a Python program to sum all the items in a dictionary.
Write a Python program to iterate over dictionaries using for loop.
Write a Python program to merge two python dictionaries.
Python Basics:
Write a Python program to compute the area of triangle.
Write a Python program to display current date and time.
Write a Python program to find the volume of a sphere.
Write a Python program to compute the GCD.
Write a Python program to compute the LCM.
Write a Python program to convert feet and inches to centimeters.
Write a Python program to convert all units of time to seconds.
Write a Python program to convert the distance in feet to inches, yards and miles.
Write a Python program to get an absolute file path.
Write a Python program to check whether a file exists.
Write a Python program to compute the distance between two points.
Write a Python program to sum all the items in a list.
Write a Python program to multiply all items in a list.
Write a Python program to get the largest number from a list.
Write a Python program to get the smallest number from a list.
Write a Python program to clone or copy a list.
Write a Python program to compute the difference between two lists.
Write a Python program to create a list with infinite elements.
Write a Python program to remove duplicates from a list.
Write a Python program to generate all permutations of a list.
Write a Python program to access the index of a list.
Write a Python program to convert a list of characters into a string
Write a Python program to find the index of an item in a specified list.
Write a Python program to get unique values from a list.
Write a Python program to get the frequency of elements in a list.
Write a Python program to count the number of elements in a list within a specified range.
Write a Python program to check whether a list contains a sublist.
Write a Python program to find factorial of a non-negative integer.
Write a Python program of recursion list sum.
Write a Python program append a list to the second list.
Write a Python program to select an item randomly from a list.