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

Error: 'dict' object has no attribute iteritems.

I'm trying to use NetworkX to read a Shapefile and use the function write_shp() to generate the Shapefiles that will contain the nodes and edges, but…

Python

1 Answer · 0 Views · Answered ✓

Asked by: Emma Cornish · 5 years ago

How to define a two-dimensional array in Python

I want to define a two-dimensional array without an initialized length like this:Matrix = [][]but it does not work...I've tried the code below, but…

Python

1 Answer · 1.4K Views · Answered ✓

Asked by: Rutuja Mishra · 5 years ago

How do I install a Python package with a .whl file?

How to install a Python package (specifically, JPype1 0.5.7) on my Windows machine, and would like to install it with Christoph Gohlke's Window…

Python

1 Answer · 1.9K Views · Answered ✓

Asked by: Rutuja Mishra · 5 years ago

How to get the home directory in Python?

I need to get the location of the home directory of the current logged-on user. Currently, I've been using the following on…

Python

1 Answer · 3.5K Views · Answered ✓

Asked by: Gareth Beacham · 5 years ago

Python NoneType object is not callable (beginner)

While running the below code,I am getting error nonetype' object is not callableline 1 and line 5 (new to debugging/programming, not sure if that…

Python

1 Answer · 1.7K Views · Answered ✓

Asked by: Rutuja Mishra · 5 years ago

Python “extend” for a dictionary

Which is the best way to extend a dictionary with another one? For instance:>>> a = { "a" : 1, "b" : 2 }>>> b = { "c" : 3, "d" : 4 }>>> a {'a': 1,…

Python

1 Answer · 1.6K Views · Answered ✓

Asked by: Rutuja Mishra · 5 years ago

Python: How to ignore an exception and proceed?

I have a try...except block in my code and When an exception is throw. I really just want to continue with the code because in that case, everything…

Python

1 Answer · 1.6K Views · Answered ✓

Asked by: akash Mishra · 5 years ago

How can I use Python to get the system hostname?

Question description - I'm writing a chat program for a local network. I would like to be able to identify computers and get the user-set computer…

Python

1 Answer · 937 Views · Answered ✓

Asked by: Anna Ball · 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.