Trending questions in Python

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 in Python by Varsha
28 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 in Python by Jiun-Jung
• 140 points
18 views
0 votes
1 answer

wcopyfind equivalent for python

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

Aug 5 in Python by Tara
9 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 in Python by Kalgi
• 39,150 points
11 views
0 votes
1 answer

How do I make my own context manager?

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

Aug 5 in Python by Yamini
8 views
0 votes
1 answer

API key for Copyleaks Python sdk

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

Aug 5 in Python by Kalgi
• 39,150 points
13 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 in Python by Haider
13 views
0 votes
1 answer

Can I build a plagiarism checker using python?

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

Aug 5 in Python by Kalgi
• 39,150 points
9 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 in Python by Neel
• 2,450 points

edited Aug 6 by Kalgi 9 views
0 votes
1 answer

What is random.sample() method in Python?

sample() is an inbuilt function of random module in Python ...READ MORE

Aug 5 in Python by Neel
• 2,450 points
7 views
0 votes
1 answer

Get all tags from taggit

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

Aug 5 in Python by SDeb
• 13,160 points
9 views
0 votes
1 answer

Python: is thread still running

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

Aug 5 in Python by SDeb
• 13,160 points
9 views
0 votes
0 answers

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

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

Aug 5 in Python by Aleesha
12 views
0 votes
0 answers

Error while saving a python file

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

Aug 5 in Python by Ashish
5 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 in Python by Waseem
• 4,160 points
5 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 in Python by Waseem
• 4,160 points
5 views
+2 votes
1 answer

How to check the state of a user given instance id using filters

Seems like the "ec2_con_re.instances" you are using ...READ MORE

Aug 1 in Python by Aishwarya
19 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 in Python by Shabnam
• 920 points
22 views
0 votes
1 answer

How to rename a file using Python?

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

Aug 2 in Python by Shabnam
• 920 points
8 views
0 votes
1 answer

How to remove a project from Pycharm?

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

Aug 2 in Python by Arvind
• 2,520 points
11 views
+1 vote
1 answer

Why does print() run only after executing for loop in Python?

Your stdout is line-buffered; this means that it won't ...READ MORE

Aug 1 in Python by Neel
• 2,450 points
12 views
+1 vote
1 answer

How to print a pyramid of asterisks in Python?

This is one of the most frequently ...READ MORE

Aug 1 in Python by Neel
• 2,450 points
11 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 in Python by Arvind
• 2,520 points
7 views
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 1 in Python by Vaishali
33 views
0 votes
1 answer

Python: XML file to pandas dataframe

Here's an example code: import pandas as pd ...READ MORE

Aug 1 in Python by Sharon
26 views
0 votes
1 answer

"%matplotlib inline" giving a syntax error

If you're using Jupyter notebook, just mention this ...READ MORE

Aug 1 in Python by Merlin
24 views
0 votes
0 answers

how to use linalg condition in python

Aug 2 in Python by teja
6 views
0 votes
0 answers

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

I am looking for a function with ...READ MORE

Aug 2 in Python by Waseem
• 4,160 points
8 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 in Python by Waseem
• 4,160 points
5 views
0 votes
1 answer

Remove beep from message dialog

You may try switching to wx.lib.agw.genericmessagedialog and see if ...READ MORE

Aug 1 in Python by SDeb
• 13,160 points
14 views
0 votes
1 answer

How to get a list of built in modules in Python?

simply open the python shell and type ...READ MORE

Aug 1 in Python by Arvind
• 2,520 points
25 views
0 votes
1 answer

Python: convert txt file to csv format with rows and columns

This code should work. You have to ...READ MORE

Aug 1 in Python by Ashish
10 views
+1 vote
0 answers

ValueError help with Simple Exponential Smoothing analysis on my data set.

I'm very new, and attempting to teach ...READ MORE

Jul 30 in Python by Declan

edited Jul 31 82 views
0 votes
1 answer

Python, mysqldb and unicode

What you get is a bytestring. You ...READ MORE

Aug 1 in Python by SDeb
• 13,160 points
9 views
0 votes
1 answer

How to open gmail and other menus from Google Apps menu using python selenium

You have to add implicit wait until ...READ MORE

Jul 31 in Python by Rishi
44 views
0 votes
1 answer

Python: Both list gets affected after creating list using list2 = list1

When you are copying a list to ...READ MORE

Aug 1 in Python by Lohit
6 views
0 votes
1 answer

Python: ImportError: No module named Crypto.Cipher

Seems like the pycrypto package is not ...READ MORE

Jul 31 in Python by Hari
42 views
0 votes
0 answers
0 votes
1 answer

Installing package not found in conda

You can install pip in your conda env and then run pip ...READ MORE

Jul 31 in Python by SDeb
• 13,160 points
13 views
0 votes
1 answer

How to distinguish between a variable and an identifier?

Key Differences between Identifier and Variable Both an ...READ MORE

Jul 31 in Python by Arvind
• 2,520 points
11 views
0 votes
1 answer

Web scraping problem

This is because many websites do not ...READ MORE

Jul 31 in Python by Wajiha
• 1,840 points
15 views
0 votes
1 answer

How do I set a Gtk.StatusIcon as Text?

I don't think that is possible. The ...READ MORE

Jul 31 in Python by SDeb
• 13,160 points
8 views
0 votes
1 answer

reverse a list without built-in functions

You can do it in 2 ways: Using ...READ MORE

Jul 31 in Python by Wajiha
• 1,840 points
12 views
0 votes
1 answer

Python script to compare 2 files

Refer the given code and let us ...READ MORE

Jul 31 in Python by Arpit
7 views
0 votes
1 answer

How to write a regular expression in Python?

The following code should be able to ...READ MORE

Jul 30 in Python by Arvind
• 2,520 points
20 views
0 votes
1 answer

How to check whether something is a variable or a function in Python?

Suppose you have a variable defined in ...READ MORE

Jul 30 in Python by Arvind
• 2,520 points
14 views
+1 vote
1 answer

Can assignment operator be used to copy elements in Python?

Yes assignment operator can be used to ...READ MORE

Jul 29 in Python by Neel
• 2,450 points

edited Jul 30 by Neel 17 views
0 votes
1 answer

Doubt in numpy.vstack

The vstack function in numpy will stack ...READ MORE

Jul 30 in Python by Esha
18 views
0 votes
1 answer

flush parameter of print in Python

Usually all I/Os are buffered, meaning they ...READ MORE

Jul 30 in Python by Wajiha
• 1,840 points
11 views
0 votes
0 answers

What is the type-error in python?

How to resolve this error, or keep ...READ MORE

Jul 31 in Python by Waseem
• 4,160 points
14 views