Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python

Python Questions & Answers

Browse 802 Python questions and answers from learners and industry experts. Find practical fixes, interview prep and step-by-step solutions - or ask your own.

802Discussions
914Answers
1Waiting for an answer
Ask a Python Question →
Browse by topic: Angular HTML Module

How to completely remove Python from a Windows machine?

I installed both Python 2.7 and Python 2.6.5. I don't know what went wrong, but nothing related to Python seems to work any more. e.g. "setup.py…

Python

1 Answer · 877 Views · Answered ✓

Asked by: Ankit yadav · 5 years ago

How to “test” NoneType in python?

I have a method that sometimes returns a NoneType value. So how can I question a variable that is a NoneType? I need to use if method, for exampleif…

Python

1 Answer · 714 Views · Answered ✓

Asked by: Amit Sinha · 5 years ago

Efficient way to rotate a list in python

What is the most efficient way to rotate a list in python? Right now I have something like this:>>> def rotate(l, n): return l[n:] + l[:n]>>> l =…

Python

1 Answer · 1.6K Views · Answered ✓

Asked by: Arun Singh · 5 years ago

python remove the last character from a string

Let's say my string is 10 characters long.How do I remove the last character?If my string is "abcdefghij" (I do not want to replace the 'j'…

Python

1 Answer · 1.1K Views · Answered ✓

Asked by: Ranjana Admin · 5 years ago

Python 3 print without parenthesis

The print used to be a statement in Python 2, but now it became a function that requires parenthesis in Python 3.Is there any way to suppress these…

Python

1 Answer · 1.3K Views · Answered ✓

Asked by: Aaditya Srivastva · 5 years ago

Python Pandas Drop Dataframe

How do I delete a column from a DataFrame? I know this data is not reproducible as I have a CSV file and I am trying to build a pandas data frame to…

Python

2 Answers · 4.6K Views · Answered ✓

Asked by: Abhishek Shukla · 5 years ago

object arrays are not currently supported

I am using code: def front_back(a, b): # +++your code here+++ if len(a) % 2 == 0 && len(b) % 2 == 0: return a[:(len(a)/2)] + b[:(len(b)/2)] +…

Python

1 Answer · 769 Views · Answered ✓

Asked by: Ranjana Admin · 5 years ago

Print list without brackets in a single row

I have a list in Python e.g.letters = ["t", "h", "e"]I want to print the array in a single line without the normal " []names = ["t", "h", "e"]print…

Python

1 Answer · 1.3K Views · Answered ✓

Asked by: yash Jaiteley · 5 years ago

mongoError: Topology was destroyed

I have a REST service built in node.js with Restify and Mongoose and a mongoDB with a collection with about 30.000 regular sized documents. I have my…

Python

1 Answer · 1.3K Views · Answered ✓

Asked by: Samantha Lawrence · 5 years ago

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.

Explore other technologies

Pick another topic to find answers, interview questions, and real-world tips.