Latest questions in Python

0 votes
1 answer

How to terminate a python script?

This can be done by importing the ...READ MORE

Aug 9, 2019 in Python by Arvind
• 3,050 points
24,814 views
0 votes
1 answer

Python in Windows Store apps

I have ported the Python interpreter to ...READ MORE

Aug 9, 2019 in Python by SDeb
• 13,300 points
1,072 views
0 votes
1 answer

Is a specific timezone using DST right now?

You can try the following; from pytz import ...READ MORE

Aug 9, 2019 in Python by SDeb
• 13,300 points
948 views
0 votes
2 answers

How to solve the error - ssl module not found?

Hey, @There, nstall the necessary packages for Python ...READ MORE

Oct 23, 2020 in Python by Gitika
• 65,730 points
2,841 views
0 votes
1 answer

how to install chatterbot in python?

You can install the latest development version of ChatterBot ...READ MORE

Jun 5, 2020 in Python by Neeraj
• 150 points
5,206 views
0 votes
1 answer

How to write a regular expression to check whether an input is an identifier or not?

As per the documentation, an identifer can ...READ MORE

Aug 8, 2019 in Python by Neel
• 3,020 points
4,084 views
0 votes
2 answers

Is it possible to launch python idle from a virtual environment?

Try running the following code. #!/usr/bin/env python """Simple script ...READ MORE

Jun 25, 2020 in Python by Sirajul
• 59,190 points
6,752 views
0 votes
1 answer

converting timedelta to float

Use the following piece of code: x1=datetime.timedelta(days=3000, seconds=0, ...READ MORE

Aug 8, 2019 in Python by Wajiha
• 1,960 points
7,081 views
0 votes
1 answer

timedelta in years

Use the following piece of code: x1=datetime.timedelta(days=3000, seconds=0, ...READ MORE

Aug 8, 2019 in Python by Wajiha
• 1,960 points
14,960 views
0 votes
0 answers

Graph and Dashboard click and mouse hovers.

Hi, I have one web page which has ...READ MORE

Aug 8, 2019 in Python by anonymous
• 280 points
1,444 views
+1 vote
1 answer

Scrapping News Website

Hey @Irshad Shaikh! We don't have a ...READ MORE

Aug 8, 2019 in Python by Edureka
• 2,960 points
1,029 views
0 votes
1 answer

How to rename columns in pandas?

Hi,  To rename columns in pandas, you can ...READ MORE

Aug 9, 2019 in Python by Taj
• 1,080 points
1,041 views
0 votes
1 answer

What is difference between "inplace = True" and "inplace = False?

Hi, Both inplace= true and inplace = False ...READ MORE

Aug 9, 2019 in Python by Taj
• 1,080 points
17,699 views
0 votes
1 answer

How can I run Jupyter code on Pycharm?

You can do this by installing the ...READ MORE

Aug 8, 2019 in Python by Zulaikha
• 910 points
1,739 views
0 votes
1 answer

How to convert .ipynb files into .py?

You can use this command to convert ...READ MORE

Aug 8, 2019 in Python by hansika
16,479 views
0 votes
1 answer

How to create a dictionary whose elements are lists?

A simple way to do this is ...READ MORE

Aug 7, 2019 in Python by Arvind
• 3,050 points
1,402 views
0 votes
1 answer

Is it possible to read a text file into a string variable and then scrap the newlines?

This can be done easily in Python. ...READ MORE

Aug 7, 2019 in Python by Arvind
• 3,050 points
2,048 views
0 votes
1 answer

converting string into datetime

You can make use of asctime() method ...READ MORE

Aug 7, 2019 in Python by Wajiha
• 1,960 points
783 views
0 votes
0 answers

Can we create a empty dataframe in python?

I want to create an empty dataframe ...READ MORE

Aug 7, 2019 in Python by Waseem
• 4,540 points
702 views
0 votes
0 answers

Can we create a python function to sort a list?

I need the logic apart from the ...READ MORE

Aug 7, 2019 in Python by Waseem
• 4,540 points
647 views
0 votes
1 answer

Can we download python from command line?

Open a command prompt window and navigate to the ...READ MORE

Aug 6, 2019 in Python by Mohammad
• 3,230 points
1,021 views
0 votes
1 answer

What does the dir() function do in python?

The dir() function returns all properties and methods of ...READ MORE

Aug 6, 2019 in Python by Mohammad
• 3,230 points
1,206 views
0 votes
1 answer

Find out time it took for a python script to complete execution

You can try the following code and ...READ MORE

Aug 6, 2019 in Python by SDeb
• 13,300 points
807 views
0 votes
1 answer

How can I make an EXE file from a Python program?

Auto PY to EXE - A .py ...READ MORE

Aug 6, 2019 in Python by SDeb
• 13,300 points
1,533 views
0 votes
1 answer

How do I make my own context manager?

Context is an opening file, catching expressions, ...READ MORE

Aug 6, 2019 in Python by Yamini
1,083 views
0 votes
1 answer

wcopyfind equivalent for python

Hi @Ashish, you can use the difflib ...READ MORE

Aug 6, 2019 in Python by Tara
994 views
0 votes
2 answers

Python error " import requests ImportError: No module named requests"

Hello, Open Cmd or Powershell as Admin. type pip ...READ MORE

Nov 28, 2020 in Python by Rohan
• 200 points
18,058 views
0 votes
1 answer

Python error "raise CommandFailedError(args) bench.utils.CommandFailedError: (’–site’, ‘all’, ‘migrate’)"

Install pyopenssl to your python pip install pyopenssl ...READ MORE

Aug 5, 2019 in Python by Kalgi
• 52,340 points
2,452 views
0 votes
0 answers

Error while saving a python file

Following error when I try to save ...READ MORE

Aug 5, 2019 in Python by Ashish
734 views
0 votes
0 answers

Python error "copyleaks.commandfailederror.CommandFailedError: Invalid login credentials."

I have the following code: ''' The MIT ...READ MORE

Aug 5, 2019 in Python by Aleesha
755 views
0 votes
1 answer

How do I upgrade my pycharm from python 2.7 to python 3?

Install Python 3.7(latest version) from the following ...READ MORE

Aug 5, 2019 in Python by Varsha
35,292 views
0 votes
1 answer

API key for Copyleaks Python sdk

Your API-KEY is available at your dashboard ...READ MORE

Aug 5, 2019 in Python by Kalgi
• 52,340 points
1,235 views
0 votes
1 answer

Can I build a plagiarism checker using python?

Hey @Alessha, you can use an SDK ...READ MORE

Aug 5, 2019 in Python by Kalgi
• 52,340 points
3,777 views
0 votes
1 answer

MiniNAM error "ovs-vsctl: no bridge named s1, ovs-vsctl: no bridge named s2"

You are getting this error because you ...READ MORE

Aug 5, 2019 in Python by Haider
2,829 views
0 votes
1 answer

How to create a function like f(y) = xy^2 in Python?

This is very easy. have a look ...READ MORE

Aug 5, 2019 in Python by Neel
• 3,020 points

edited Aug 6, 2019 by Kalgi 2,486 views
0 votes
2 answers

What is random.sample() method in Python?

The use of random.sample() Randomly select multiple items from ...READ MORE

Mar 13, 2020 in Python by Vishal
• 180 points
5,099 views
0 votes
0 answers

How do you use an else clause in a while loop in python?

Can you give an example? READ MORE

Aug 5, 2019 in Python by Waseem
• 4,540 points
1,076 views
0 votes
0 answers

What is the syntax for an empty while loop in python?

What kind of ambiguities are expected for ...READ MORE

Aug 5, 2019 in Python by Waseem
• 4,540 points
1,010 views
0 votes
1 answer

Get all tags from taggit

You can use all() to get all the tags ...READ MORE

Aug 5, 2019 in Python by SDeb
• 13,300 points
2,864 views
0 votes
1 answer

Python: is thread still running

The key is to start the thread ...READ MORE

Aug 5, 2019 in Python by SDeb
• 13,300 points
5,992 views
+2 votes
0 answers

I am trying to create mininet, but I cannot ping all host and switch

I am trying to do mininet environment ...READ MORE

Aug 4, 2019 in Python by Jiun-Jung
• 140 points
2,771 views
0 votes
1 answer

How to convert Python Datetime to String without microsecond component?

If you want to format a datetime object in ...READ MORE

Aug 2, 2019 in Python by Shabnam
• 930 points
2,444 views
0 votes
1 answer

How to rename a file using Python?

Hi, We can use rename() method to rename ...READ MORE

Aug 2, 2019 in Python by Shabnam
• 930 points
1,001 views
0 votes
0 answers

how to use linalg condition in python

Aug 2, 2019 in Python by teja
642 views
0 votes
1 answer

What is the logic to check if a number is prime or not in python?

n = int (input ('ENTER NUMBER TO ...READ MORE

Jul 16, 2020 in Python by amrut
• 240 points
1,399 views
0 votes
0 answers

How to handle large files using file handling in python?

I have used file handling for smaller ...READ MORE

Aug 2, 2019 in Python by Waseem
• 4,540 points
906 views
0 votes
1 answer

What are first class objects in Python?

First-class objects in a language are handled uniformly ...READ MORE

Aug 2, 2019 in Python by Arvind
• 3,050 points
3,507 views
0 votes
1 answer

How to remove a project from Pycharm?

Assuming that you have the project opened ...READ MORE

Aug 2, 2019 in Python by Arvind
• 3,050 points
16,779 views
+1 vote
0 answers
0 votes
1 answer

Python error "TypeError: 'encoding' is an invalid keyword argument for this function"

Trying using the io module for this ...READ MORE

Aug 2, 2019 in Python by Vaishali

edited Oct 7, 2021 by Sarfaraz 15,336 views