Python is a Dynamically typed programming language.What are the differences between statically typed and dynamically typed languages?
Tag: python
QR Code Generator in Python
For creating the QR code generator we will be using pyqrcode module of python. This module needs to be installed explicitly on your system because this module does not come up with python already.
Python- Practice Paper – 2 (Predict the outputs)
In this post, we will see different questions which will test your python basic skills. Let’s see the Questions: 1) Ans: [1, 3, 2, 1, 3, 2, 1, 3, 2] 2) Ans: 4 [[[1, 2], [3, 4], 5], 6, 7] 3) Ans: [3, 1, 2, 5, 4, 6] [5, 4, 6, 3, 1, 2] 4) […]
How to Delete a specific Row from a Given SQLite Table using Python?
SQLite is a self-contained, high-reliability, embedded, full-featured, public-domain, SQL database engine. It is the most used database engine on the world wide web. Python has a library to access SQLite databases, called sqlite3. Let’s see how we can delete a specific row from a given Sqlite table. First, Let’s create a database and table then […]
How to import CSV file into an SQLite Table using Python?
In this post, we will see how to import CSV file data into an SQLite database table using Python. Now, For solving this requirement we will be using two modules: sqlite3 and pandas. So let’s discuss these first. sqlite3 module is used to access SQLite databases in Python. SQLite is a self-contained, high-reliability, embedded, full-featured, […]
Python- practice paper – 1
In this post, we will see different types of questions based on python language which checks your python basic skills. Ques 1: Give the output that will be produced on the execution of the following code segments: Ques 2: Write a function series_sum(n) in Python to calculate the sum of the first n terms of […]
Python – Program for printing Prime Numbers from the List of Numbers
In this post, We will see how to write a python program for finding prime numbers from the list of numbers in different ways. Click on this link : Prime Number Example: Input: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] Output: Prime Number : -> 2, 3, 5, 7, Input: [15, […]
Python – Program for checking whether a number is Prime or not?
In this post, We will be going to see different ways to write a code in Python for checking whether a number is Prime or not, provided number > 1. Prime Number is a natural number which is greater than 1 and that has no positive divisors other than 1 and number itself. Examples : […]
Python – Program for counting number of letters in a word
In this post, We will be going to see different ways to write a code in Python for counting number of letters in a word Example: Input: Word = “BioChemiThon” Output: B -> 1 i -> 2 o -> 2 C -> 1 h -> 2 e -> 1 m -> 1 T -> 1 […]
Set up Python virtual environment using Anaconda
While working with python, we usually face the problem of setting up the virtual environment. In this blog I have covered the steps of creating virtual environment in python. Anaconda : Anaconda is an open source software that contains Jupyter, spyder idle etc that are used for large data processing, data analytics, heavy scientific computing. […]