Latest questions in Python

–1 vote
1 answer

Python error saying "NameError: name 'email' is not defined"

you need to define the variable email READ MORE

Nov 29, 2019 in Python by Casper
• 160 points
6,381 views
0 votes
1 answer
0 votes
1 answer

numpy all differing from builtin all

Numpy.all does not understands generator expressions. From the ...READ MORE

Jun 13, 2019 in Python by SDeb
• 13,300 points
516 views
0 votes
1 answer

Serving static files on heroku

Try using Amazon s3 for storing static ...READ MORE

Jun 13, 2019 in Python by SDeb
• 13,300 points
2,934 views
0 votes
0 answers

How can you use html parser in python?

Is it only used while web scraping? What ...READ MORE

Jun 12, 2019 in Python by Waseem
• 4,540 points
403 views
0 votes
1 answer

What exactly is invalid syntax error?

please solve this error   def TakeImages():     Id=(text.get())   ...READ MORE

Jul 20, 2020 in Python by Prince kumar
1,639 views
0 votes
1 answer

Why are Lists faster than character arrays for string concatenation?

It's true that in the list-append method, ...READ MORE

Jun 12, 2019 in Python by SDeb
• 13,300 points
1,680 views
0 votes
1 answer

What are higher-order functions?

Higher-order functions are those functions that either ...READ MORE

Jul 25, 2019 in Python by Fata
• 1,050 points
759 views
0 votes
1 answer

Is it possible to concatenate QuerySets?

You can start with this- from itertools import ...READ MORE

Jun 12, 2019 in Python by SDeb
• 13,300 points
1,470 views
0 votes
1 answer

Please explain the logic of giving a name to lambda function when it is actually a nameless function?

This is done because these functions are ...READ MORE

Jun 12, 2019 in Python by Wajiha
• 1,950 points
722 views
0 votes
1 answer

Python code to send an email with an attachment

Hi @Vipul, try out this code. I've ...READ MORE

Jun 11, 2019 in Python by Adil
14,556 views
0 votes
1 answer

Python code to send an email message from 1 email id to another

Hi @Deb, try out the following code: import ...READ MORE

Jun 11, 2019 in Python by Picentra
876 views
0 votes
1 answer

Python code to send an email message from my gmail to many others

Hey @Varsha, you can try out the ...READ MORE

Jun 11, 2019 in Python by Travis
862 views
0 votes
1 answer

Shallow copying vs Deep copying

If you have an object and you ...READ MORE

Jun 11, 2019 in Python by Kyraa
954 views
0 votes
1 answer

Flatten 2D list in Python

Here's an example for you: mat = [[10, ...READ MORE

Jun 11, 2019 in Python by Adi
614 views
0 votes
1 answer

What are frozen sets in python?

A frozen set in Python is a ...READ MORE

Jun 11, 2019 in Python by Nisa
• 1,090 points
2,750 views
0 votes
0 answers

How can I use pi in python?

What is the module required to import ...READ MORE

Jun 11, 2019 in Python by Waseem
• 4,540 points
612 views
0 votes
0 answers

How can I use help in the python console?

Can you give the syntax to print ...READ MORE

Jun 11, 2019 in Python by Waseem
• 4,540 points
300 views
0 votes
1 answer

What is the purpose of using lambda functions in Python?

The main purpose of anonymous functions come ...READ MORE

Jun 11, 2019 in Python by Nisa
• 1,090 points
1,437 views
0 votes
1 answer

Application asks for internet connection

It's not Python itself. I've traced it ...READ MORE

Jun 11, 2019 in Python by SDeb
• 13,300 points
372 views
0 votes
1 answer

How to broadcast to a multiindex?

If you just want to do simple ...READ MORE

Jun 11, 2019 in Python by SDeb
• 13,300 points
1,496 views
0 votes
1 answer

How can I change the iteration variable inside a for loop in python?

Assume you have a list of lists: my_list ...READ MORE

Jun 10, 2019 in Python by Shubham Bansal
5,307 views
0 votes
0 answers

What is the technique to get plain text output using a simple templating system?

Can you give an example using html ...READ MORE

Jun 10, 2019 in Python by Waseem
• 4,540 points
320 views
0 votes
1 answer

How to set NotebookApp.iopub_data_rate_limit and others NotebookApp settings in JupyterHub?

Open the command line and enter jupyter notebook ...READ MORE

Jun 10, 2019 in Python by SDeb
• 13,300 points
12,428 views
0 votes
1 answer

Sum of distances from a point to all other points

You can use cdist - In [1]: from scipy.spatial.distance import ...READ MORE

Jun 10, 2019 in Python by SDeb
• 13,300 points
1,498 views
0 votes
2 answers

What is the difference between python lists and arrays?

Python arrays and lists have the same ...READ MORE

Jun 11, 2019 in Python by Nisa
• 1,090 points
1,100 views
0 votes
4 answers

How to write a single program in python to print different '*' triangles?

If you want to use the same ...READ MORE

Jun 11, 2019 in Python by Likhith
8,670 views
0 votes
1 answer

example of mypy with static typing

Have a look at this example: import sys import ...READ MORE

Jun 7, 2019 in Python by Althier
549 views
0 votes
0 answers

what is the use of visual studio 2015 tool in python?

What purpose would it serve being a ...READ MORE

Jun 7, 2019 in Python by Waseem
• 4,540 points
336 views
0 votes
0 answers

what is the use of python math module?

what are different functions that we can ...READ MORE

Jun 7, 2019 in Python by Waseem
• 4,540 points
353 views
+1 vote
1 answer

I want to understand the difference between delete, remove and pop, in Python.

Hi, Lets look at all the methods one ...READ MORE

Jun 7, 2019 in Python by Taj
• 1,080 points
4,146 views
0 votes
1 answer

I want to insert an element at a specific index in a list and return the updated list.

Hi, Using insert() method you can insert the ...READ MORE

Jun 7, 2019 in Python by Taj
• 1,080 points
1,675 views
0 votes
1 answer

Mypy with dynamic typing example

Have a look at this example that ...READ MORE

Jun 7, 2019 in Python by Althia
499 views
0 votes
1 answer

What is Mypy in Python?

Mypy is an optional static type checker ...READ MORE

Jun 7, 2019 in Python by Avant
908 views
0 votes
1 answer

Example to using pytype

Hey, here's an example that I found ...READ MORE

Jun 7, 2019 in Python by Alia
966 views
0 votes
1 answer

Scripts along with pytype

Pytype ships with three scripts in addition ...READ MORE

Jun 7, 2019 in Python by Greg
378 views
0 votes
1 answer

Install pytype from GitHub?

Execute the following command to install pytype ...READ MORE

Jun 7, 2019 in Python by Fatima
710 views
0 votes
1 answer

platform support for pytype python checker

Platform support: Pytype is currently developed and tested ...READ MORE

Jun 7, 2019 in Python by Kiranmai
444 views
0 votes
1 answer

Setup pytype on entire package

To set up pytype on an entire ...READ MORE

Jun 7, 2019 in Python by Bakshi
583 views
0 votes
1 answer

How do I install pytype?

Installing pytype is very simple. Just execute ...READ MORE

Jun 7, 2019 in Python by Rakshi
937 views
0 votes
1 answer

Pytype checker funtion

Pytype checks and infers types for your ...READ MORE

Jun 7, 2019 in Python by Fez
589 views
0 votes
1 answer

Checkers that can check hints in python source code

Static type checkers such as Mypy, Pyre, ...READ MORE

Jun 7, 2019 in Python by Fez
660 views
0 votes
1 answer

Is there a tool to help find bugs or perform static analysis?

There are two tools that I'm aware ...READ MORE

Jun 7, 2019 in Python by Adarsh
1,058 views
0 votes
0 answers

Is there a tool to help find bugs or perform static analysis?

Is there a tool to help find ...READ MORE

Jun 7, 2019 in Python by jinu
304 views
0 votes
1 answer

Python IDE's that include graphical debuggers

There are three python IDE's that include ...READ MORE

Jun 7, 2019 in Python by Fez
531 views
0 votes
1 answer

Can I make incompatible changes to Python?

Hi @Zaid, It's actually not very cool ...READ MORE

Jun 7, 2019 in Python by Greg
375 views
0 votes
1 answer

Python Significant projects

Hi @Zaid, Have a look at this ...READ MORE

Jun 7, 2019 in Python by Ishaan
549 views
0 votes
1 answer

Excel Python API

xlwt and xlrd can read and write Excel files, without ...READ MORE

Jun 7, 2019 in Python by SDeb
• 13,300 points
1,008 views
0 votes
1 answer

How to suppress console output in Python?

You can try the following block of ...READ MORE

Jun 7, 2019 in Python by SDeb
• 13,300 points
5,913 views
0 votes
0 answers

What are some sources to learn design techniques in python?

The idea is to build creative error ...READ MORE

Jun 6, 2019 in Python by Waseem
• 4,540 points
295 views