Pawandeep has Published 21 Articles

How to install Tkinter in Python?

pawandeep

pawandeep

Updated on 31-May-2024 12:07:26

648K+ Views

Tkinter is a standard library in Python which is used for GUI application. Tkinter has various controls which are used to build a GUI-based application.To install Tkinter, we need Python pre-installed. Tkinter actually comes along when we install Python. While installing Python, we need to check the td/tk and IDLE ... Read More

How to install Python in Windows?

pawandeep

pawandeep

Updated on 26-Feb-2024 11:05:03

207K+ Views

Python is a widely used high-level programming language. To write and execute code in python, we first need to install Python on our system.Installing Python on Windows takes a series of few easy steps.Step 1 − Select Version of Python to InstallPython has various versions available with differences between the ... Read More

How to clear Python shell?

pawandeep

pawandeep

Updated on 31-Oct-2023 03:26:00

27K+ Views

Python provides a python shell which is used to execute a single Python command and display the result. It is also called REPL. REPL stands for Read, Evaluate, Print and Loop. The command is read, then evaluated, afterwards the result is printed and looped back to read the next command.Sometimes ... Read More

How to create a DataFrame in Python?

pawandeep

pawandeep

Updated on 25-Aug-2023 01:13:12

35K+ Views

Dataframe is a 2D data structure. Dataframe is used to represent data in tabular format in rows and columns. It is like a spreadsheet or a sql table. Dataframe is a Pandas object.To create a dataframe, we need to import pandas. Dataframe can be created using dataframe() function. The dataframe() ... Read More

How to declare a variable in Python?

pawandeep

pawandeep

Updated on 23-Aug-2023 14:16:00

68K+ Views

In Python, we need not declare a variable with some specific data type.Python has no command for declaring a variable. A variable is created when some value is assigned to it. The value assigned to a variable determines the data type of that variable.Thus, declaring a variable in Python is ... Read More

How to compare two lists in Python?

pawandeep

pawandeep

Updated on 23-Aug-2023 13:50:34

71K+ Views

The list in python is a collection of similar items. We may at times need to compare data items in the two lists to perform certain operations. We will discuss certain methods to compare two lists in python.Using list.sort() and == operatorThe list.sort() method sorts the two lists and the ... Read More

How to print in same line in Python?

pawandeep

pawandeep

Updated on 22-Aug-2023 02:09:21

123K+ Views

The print() method in Python automatically prints in the next line each time. The print() method by default takes the pointer to the next line.Example Live Demofor i in range(5):    print(i)Output0 1 2 3 4Modify print() method to print on the same lineThe print method takes an extra parameter end=" ... Read More

Which is the fastest implementation of Python

pawandeep

pawandeep

Updated on 11-Jun-2021 12:51:50

985 Views

Python has many active implementations. We will be addressing its different implementations and know which is the fastest implementation.Different implementations of Python −IronPython − This is the Python implementation which runs on .NET framework. This implementation is written in C#. It uses .net virtual machine for running. IronPython can use the ... Read More

How to connect Database in Python?

pawandeep

pawandeep

Updated on 11-Jun-2021 12:49:17

4K+ Views

Most of the applications need to be integrated or connected with a database for performing certain relevant operations. The majority of projects require database connectivity to store certain data about the users. MySQL Database can be integrated with the Python applications.To connect MySQL database, we need to have it installed ... Read More

Palindrome in Python: How to check a number is palindrome?

pawandeep

pawandeep

Updated on 11-Mar-2021 12:25:51

711 Views

What is a palindrome?A palindrome is a string that is the same when read from left to right or from right to left. In other words, a palindrome string is the one whose reverse is equal to the original string.For example, civic, madam are palindromes.Cat is not a palindrome. Since ... Read More

Advertisements