Most answered questions in Python

0 votes
3 answers

What is python? Where it is used?

 Python is develop by Guido Van Rossum ...READ MORE

Mar 18, 2019 in Python by rajesh kumar
755 views
0 votes
3 answers

Python Selenium best tutorials for beginners

Hope this will help you...Python Tutorial READ MORE

Feb 11, 2019 in Python by aldrinjohn
• 140 points
3,527 views
+4 votes
3 answers

What does these operator mean **, ^, %, // ?

** - Performs exponential (power) calculation on ...READ MORE

Apr 12, 2018 in Python by anto.trigg4
• 3,440 points
1,074 views
+2 votes
3 answers

How can I play an audio file in the background using Python?

down voteacceptedFor windows: you could use  winsound.SND_ASYNC to play them ...READ MORE

Apr 4, 2018 in Python by charlie_brown
• 7,720 points
12,971 views
+2 votes
3 answers

what is the practical use of polymorphism in Python?

Polymorphism is the ability to present the ...READ MORE

Mar 31, 2018 in Python by anto.trigg4
• 3,440 points
4,332 views
0 votes
2 answers

Removing duplicates in lists

list(set(t + t2)) READ MORE

Feb 13, 2022 in Python by anonymous
540 views
0 votes
2 answers

What's the difference between %s and %d in Python string formatting?

The reason is that they are using ...READ MORE

Feb 8, 2022 in Python by Rahul
• 9,670 points
20,354 views
0 votes
2 answers

How do I set the figure title and axes labels font size in Matplotlib?

Setting the font size of the figure ...READ MORE

Jan 4, 2021 in Python by Nikita
7,848 views
0 votes
2 answers

How to change the font size on a matplotlib plot?

Functions dealing with text like label, title, etc. accept ...READ MORE

Jan 4, 2021 in Python by Carlos
3,825 views
0 votes
2 answers

How do I make python wait for a pressed key?

Then use this code: import keyboard keyboard.sleep() READ MORE

Jan 4, 2021 in Python by Reshma
75,566 views
0 votes
2 answers

Deleting DataFrame row in Pandas based on column value

Pandas provide data analysts a way to ...READ MORE

Jan 4, 2021 in Python by Nikita
2,086 views
0 votes
2 answers

How do I check if a variable exists in python?

Python doesn’t have a specific function to ...READ MORE

Dec 28, 2020 in Python by Carlos
11,948 views
0 votes
2 answers

what path should I give to the url for showing a pop up when clicking on "more info" button in django?

I think u can use the bootstrap ...READ MORE

Dec 29, 2020 in Python by Carlos
2,999 views
0 votes
2 answers

How to Import a module from a relative path?

If i understand your question correct then ...READ MORE

Dec 14, 2020 in Python by Tanja84DK

edited Dec 15, 2020 1,304 views
0 votes
2 answers

How to convert integer to string in Python?

if You Want to convert int to ...READ MORE

Nov 28, 2020 in Python by Rohan
• 200 points
578 views
0 votes
2 answers

ImportError: No system module 'pywintypes' (pywintypes38.dll)

I just copied the DLL pywintypes27.dll in C:\Python27\Lib\site-packages\pywin32_system32. I added it ...READ MORE

Nov 25, 2020 in Python by Roshni
• 10,520 points
4,897 views
0 votes
2 answers

AttributeError: '<invalid type>' object has no attribute 'pen' on line 2

Hello, Turtle.pen is used to set/get pen attributes ...READ MORE

Nov 25, 2020 in Python by Niroj
• 82,880 points
3,584 views
0 votes
2 answers

How can I safely create a nested directory?

No need to put filename.txt For directory check path ...READ MORE

Nov 25, 2020 in Python by Deepak Chaurasia
1,371 views
0 votes
2 answers

How to add image file in html using python

Hi, I have implemented as below from robot.api import ...READ MORE

Feb 9, 2021 in Python by anonymous
9,756 views
0 votes
2 answers

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

R u getting the issue while running ...READ MORE

Nov 2, 2020 in Python by anonymous
11,075 views
0 votes
2 answers

How do I convert text file to CSV file with only plain python. Meaning no panda or any other special module?

Steps to Convert Text File to CSV ...READ MORE

Oct 15, 2020 in Python by Abdul Shekh
8,400 views
0 votes
2 answers

How to click button selenium python?

Selenium can automatically click on buttons that ...READ MORE

Oct 14, 2020 in Python by Danish Bhatiya
27,989 views
0 votes
2 answers

How to call perl script in Python script?

If you just want to open a ...READ MORE

Oct 7, 2020 in Python by Reshma
12,567 views
0 votes
2 answers

How to use in python for loop not equal marks? example: a!=0

Hello @Azizjon, You can go through the example ...READ MORE

Oct 12, 2020 in Python by Gitika
• 65,910 points
1,961 views
0 votes
2 answers

module 'numpy' has no attribute 'unit8'

Hi@Ganesh, I think you are calling the wrong ...READ MORE

Sep 22, 2020 in Python by MD
• 95,440 points
2,562 views
0 votes
2 answers

Run a python script that automates create operation of 10000 entries in mongodb on spring tool suite

You can write a simple loop to ...READ MORE

Aug 24, 2020 in Python by Richa sharma
919 views
0 votes
2 answers

What is difference between genarator and iterator

Hello @ Ramesh Generator Iterator Implemented using a function. Implemented using a ...READ MORE

Aug 17, 2020 in Python by Niroj
• 82,880 points
1,164 views
0 votes
2 answers

WHY IS IT SHOWING THIS ERROR?

Hello @shrood , If you are trying to find ...READ MORE

Jul 24, 2020 in Python by Niroj
• 82,880 points
3,296 views
0 votes
2 answers

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

Hey,  @Himanshu. It's still most likely gzipped data. ...READ MORE

Jul 27, 2020 in Python by Gitika
• 65,910 points
23,709 views
0 votes
2 answers

This kind of error throwing AttributeError: __enter__

I had recently found its solution and ...READ MORE

Jul 31, 2020 in Python by lokesh
7,530 views
0 votes
2 answers

TypeError: 'float' object cannot be interpreted as an integer

Hi@akhtar, The range function does not work with ...READ MORE

Jun 29, 2020 in Python by MD
• 95,440 points
16,380 views
0 votes
2 answers

How to split excel field data which contains the multiple delimiter values?

Try the following: new = data["Filed_data"].str.split(";", n = ...READ MORE

Jun 25, 2020 in Python by Shivam Dutt Sharma
1,412 views
+1 vote
2 answers

ModuleNotFoundError: No module named 'selenium'

i fix the problem after installing go ...READ MORE

Nov 18, 2020 in Python by ahmed
24,054 views
0 votes
2 answers

Python Error: No python at 'C:\Users\dell\Appdata\Local\Programs\Python\Python37-32\python.exe'

did you solve this problem? i have ...READ MORE

Aug 20, 2020 in Python by anonymous
30,007 views
+1 vote
2 answers

What is the difference between .py and .pyc files in Python?

Hi, @Roshni, You can follow a few steps ...READ MORE

Jun 23, 2020 in Python by Gitika
• 65,910 points
32,870 views
0 votes
2 answers

Which IDE should I use for python?

Pycharm or Spyder. You can even use visual ...READ MORE

Jun 23, 2020 in Python by Anjali
728 views
+1 vote
2 answers

Error:Django gives Bad Request (400) when DEBUG = False

Tried this and it resolved all my ...READ MORE

Sep 25, 2020 in Python by Agaba
5,685 views
+2 votes
2 answers

ImportError: numpy.core.multiarray failed to import

try this... run this code one by one.... pip ...READ MORE

Nov 5, 2020 in Python by Anand Vijay Rajsri

reshown Nov 5, 2020 by Sirajul 34,178 views
0 votes
2 answers

Recursive Pattern Using Python

n = int(input("please enter your no:")) k = ...READ MORE

Jun 28, 2020 in Python by Shaurya Thapliyal
• 340 points
6,923 views
0 votes
2 answers

ModuleNotFoundError: No module named 'apyori'

apriori is python 2.7 module so this ...READ MORE

Jun 9, 2020 in Python by sahil
• 580 points
16,548 views
0 votes
2 answers

How to upgrade all Python packages with pip?

Open the command prompt and check the ...READ MORE

Jun 7, 2020 in Python by sahil
• 580 points
5,600 views
0 votes
2 answers

Python error “ImportError: No module named”

use the dir() function for particular import ...READ MORE

Jun 6, 2020 in Python by sahil
• 580 points
15,593 views
0 votes
2 answers

How do I access command line arguments in Python?

import sys print(sys.argv) More specifically, if you run python example.py ...READ MORE

Jun 25, 2020 in Python by Karan
907 views
0 votes
2 answers

ModuleNotFoundError: No module named 'folium'

Following Command install it will work: conda install ...READ MORE

Aug 28, 2020 in Python by Sunil Patil
12,573 views
+2 votes
2 answers

ModuleNotFoundError: No module named 'pyttsx3

Hi@akhtar, To avoid this error you have to ...READ MORE

Apr 24, 2020 in Python by MD
• 95,440 points
27,610 views
0 votes
2 answers

ModuleNotFoundError: No module named 'pythoncom' in pyttsx3

even i faced the same problem ...just ...READ MORE

Jun 2, 2020 in Python by anonymous
13,016 views
0 votes
2 answers

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 16: invalid start byte

Thanks, This answer was helpful. READ MORE

Jul 11, 2020 in Python by Prashant Chhatrashali
15,754 views
+3 votes
2 answers

sum of 1/2+2/3+3/4+...+n/n+1

num = int(input("Enter a number: ")) newnum = ...READ MORE

Dec 27, 2019 in Python by Nisha
• 200 points
12,345 views
0 votes
2 answers

Data of XYZ company is stored in sorted list. Write a program for searching specific data from that list.

https://www.youtube.com/watch?v=mqaf7vj1AdA This link has the program. It uses ...READ MORE

Dec 3, 2019 in Python by Raveendiran
• 980 points
4,292 views