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…
1 Answer · 0 Views · Answered ✓
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.
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…
1 Answer · 0 Views · Answered ✓
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…
1 Answer · 1.4K Views · Answered ✓
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…
1 Answer · 1.9K Views · Answered ✓
I need to get the location of the home directory of the current logged-on user. Currently, I've been using the following on…
1 Answer · 3.5K Views · Answered ✓
I have this tail-recursive function here:def fib(n, sum): if n < 1> return sum else: return fib(n-1, sum+n)c = 998print(fib(c, 0))It works up to…
1 Answer · 1.6K Views · Answered ✓
In numpy, I have two "arrays", X is (m,n) and y is a vector (n,1)usingX*yI am getting the errorValueError: operands could not be broadcast together…
1 Answer · 4.1K Views · Answered ✓
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…
1 Answer · 1.7K Views · Answered ✓
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,…
1 Answer · 1.6K Views · Answered ✓
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…
1 Answer · 1.6K Views · Answered ✓
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…
1 Answer · 937 Views · Answered ✓
So I try to import SQL files into rds (1G MEM, 1 CPU). The SQL file is like 1.4GMySQL -h xxxx.rds.amazonaws.com -u user -ppass…
1 Answer · 592 Views · Answered ✓
Has anybody seen this error and know what to do?I'm using the terminal, I'm in the root, the GitHub repository exists and I don't know what to do…
1 Answer · 1.4K Views · Answered ✓
Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Most-read guides across JanBask
Common Python interview questions, answered
Guides, tips and career advice on Python from JanBask experts.
Python How to Become a Python Developer: A Step-by-Step Guide for Beginners
Discover how to become a Python Developer via a practical 7-step guide build projects, maintain clean code, practice daily, and…
Python PCEP Certification Guide: Entry-Level Python Programmer Certification
Explore this PCEP certification guide for insights on cost, exam format, passing score, application, training, and study tips.…
Python Top 50+ Python Projects ideas for Beginners to Advanced
Discover innovative Python project ideas, explore advanced Python projects, and find good Python projects for beginners and…
Python How To Comment Out Multiple Lines In Python Like A Pro
Commenting out code is a common practice among programmers. It allows you to temporarily disable parts of your code without…
Pick another topic to find answers, interview questions, and real-world tips.