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

ModuleNotFoundError No Module Named Cv2

I am getting this modulenotfounderror: no module named 'cv2'when I tried to import the cv2 module in jupyter notebook.import cv2 ModuleNotFoundError…

Python

2 Answers · 38.4K Views · Answered ✓

Asked by: Andrea Bailey · 3 years ago

How to terminate a python script

In PHP there is a die() function that is used to display a message and exit the script. Is there something similar in Python? Why python exit with…

Python

1 Answer · 1.8K Views · Answered ✓

Asked by: Lily Hemmings · 5 years ago

How to check if the URL contains a given string

How could I do something like this:[removed]$(document).ready(function () { if[removed].contains("franky")) // This doesn't work, any suggestions? {…

Python

1 Answer · 1.2K Views · Answered ✓

Asked by: Kayla Shinn · 5 years ago

how to exit a python script in an if statement

I'm using Python 3.2 and trying to exit it after the user inputs that they don't want to continue, is there code that will exit it in an if statement…

Python

1 Answer · 1.3K Views · Answered ✓

Asked by: Naina pandey · 5 years ago

create an empty list in python with certain size

I want to create an empty list (or whatever is the best way) that can hold 10 elements.After that I want to assign values in that list, for example…

Python

1 Answer · 1.7K Views · Answered ✓

Asked by: Yamamoto Saito · 5 years ago

how to exit a python script in an if statement

I'm using Python 3.2 and trying to exit it after the user inputs that they don't want to continue, is there code that will exit it in an if statement…

Python

3 Answers · 58.8K Views · Answered ✓

Asked by: Clare Matthews · 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.