I. Use a web browser to go to Python website http://python.org; II. Start Python interpreter and type help()
View Solution →Python Programming Lab Programs
This section contains 36 Python Programming laboratory programs for B.Tech I Year II Semester under R25 Regulation. Select any program to view its complete solution.
Python Basics
Start Python interpreter and use it as a calculator
View Solution →Write a Python program to calculate compound interest
View Solution →Write a Python program to read name, address, email and phone number
View Solution →Write a Python program to print the following triangle pattern: 5, 4 4, 3 3 3, 2 2 2 2, 1 1 1 1 1
View Solution →Write a Python program to check whether a character is a digit, lowercase, uppercase or special character using if-else-if
View Solution →Write a Python program to print prime numbers in an interval using break
View Solution →Arrays, Lists and Tuples
Write a Python program to convert a list and tuple into arrays
View Solution →Write a Python program to find common values between two arrays
View Solution →Write a Python program to define a function to check whether a list is a palindrome
View Solution →Write a Python program to define an is_sorted function to check whether a list is sorted
View Solution →Write a Python program to define a has_duplicates function to check whether a list contains duplicates
View Solution →Write a Python program to define a remove_duplicates function to remove duplicate values from a list
View Solution →Strings and Dictionaries
Write a Python program to add "I", "a" and an empty string to a word list containing single-letter words
View Solution →Write a Python program to read dictionary values and invert the content
View Solution →Write a Python program to add comma between characters. Example: Apple → A,p,p,l,e
View Solution →Write a Python program to remove a given word from all places in a string
View Solution →Write a Python program to capitalize the first letter of each word and convert the remaining letters to lowercase without using built-in functions
View Solution →Recursion and Matrices
Write a recursive Python function to generate all binary strings of n-bit length
View Solution →Write a Python program to define a matrix and print the matrix
View Solution →Write a Python program to multiply two square matrices
View Solution →Modules, Exceptions and Classes
Write a Python program to create a module with examples of geometric shapes and operations
View Solution →Write a Python program to demonstrate exception handling for all general-purpose exceptions
View Solution →Write a Python program to implement draw_rectangle(Canvas, Rectangle)
View Solution →Write a Python program to add a color attribute to Rectangle and modify draw_rectangle
View Solution →Write a Python program to implement draw_point(Canvas, Point)
View Solution →Write a Python program to create a Circle class and implement draw_circle
View Solution →Validation and File Handling
Write a Python program to read phone number and email address and validate them
View Solution →Write a Python program to merge two files into a third file
View Solution →Write a Python program to open a file, check whether given words are present and display them when found
View Solution →Write a Python program to read a text file and find the word with the most occurrences
View Solution →Write a Python program to find file statistics such as words, vowels, blanks, lowercase letters and uppercase letters
View Solution →Python Libraries, Logic Gates and GUI
Import NumPy, Plotly and SciPy and explore their features
View Solution →Install NumPy using pip and explore NumPy
View Solution →Write a Python program to implement Digital Logic Gates: AND, OR, NOT and EX-OR
View Solution →Write a Python GUI program to create a wizard window with two text labels, two text fields, Submit and Reset buttons
View Solution →