Python is old programming language but its being used these days for web development, scripting and Machine learning project. So, the use of Python programming language is very huge these days. In this section you will find various programming topics in Python. Ask questions related to Python here.
Latest Questions for Python Questions and answers.
  • How to create a list in Python

    Hi, I want to learn list in Python. I have to create a list in Python. How I can create a list in Python programming language? Thanks

    Posted on: November 17, 2024 at 3:06 PM
  • installing python install mysql connector module

    Hi, I am working on a Python project where I have to connect to MySQL Server in my program. How to connect to MySQL from Python? Share me the steps for installing python install mysql connector module. Thanks

    Posted on: September 18, 2024 at 1:12 PM
  • How to use the ray.shutdown function in ray

    Hi, I am running jobs using Python ray cluster. I want to shutdown all the jobs. How to use the ray.shutdown function in ray? Thanks

    Posted on: June 27, 2023 at 6:41 AM
  • npm ERR! enoent undefined when running npm install

    Hi, While running the npm install I am getting following error: npm ERR! enoent undefined when running npm install How to resolve this?

    Posted on: April 5, 2023 at 6:16 AM
  • How do I calculate square root in Python

    Hi, I want to calculate the square root in Python. How I can do it? How do I calculate square root in Python? Thanks

    Posted on: April 3, 2023 at 3:26 PM
  • ImportError: No module named cryptography.hazmat.bindings._openssl

    Hi, While installing one pyhton project I am getting following error: ImportError: No module named cryptography.hazmat.bindings._openssl How to resolved this? Thanks

    Posted on: March 9, 2023 at 5:22 AM
  • ModuleNotFoundError: No module named 'OpenSSL'

    Hi, while importing open ssl I am getting following error: ModuleNotFoundError: No module named 'OpenSSL' How to resolve this? Thanks

    Posted on: December 27, 2022 at 4:49 PM
  • ModuleNotFoundError: No module named 'OpenSSL' despite having pyopenssl installed

    Hi, I have installed pip install pyOpenSSL with following command: pip install pyOpenSSL But still getting error: >>> import OpenSSL Traceback (

    Posted on: December 27, 2022 at 4:46 PM
  • terminal install requirements.txt

    Hi, How to install requirements.txt file in Python? I need to find out way for terminal install requirements.txt. Thanks

    Posted on: December 5, 2022 at 5:03 PM
  • terminal install requirements.txt

    Hi, How to install requirements.txt file in Python? I need to find out way for terminal install requirements.txt. Thanks

    Posted on: December 5, 2022 at 5:03 PM
  • what is redis default port number

    Hi, I am writing program in Python to connect to redis server and add/update data. I want to know the port number on which redis is running. Please help me in finding the default port number of redis. what is redis default

    Posted on: November 8, 2022 at 7:31 AM
  • Will Python 3.11 be faster?

    Hi, There is a lot of talk about the Python 3.11. I have heard that Python 3.11 is going to come with performance improvements. Is Python 3.11 is really going to be faster then previous versions of Python? Will Python 3.11

    Posted on: November 6, 2022 at 6:50 AM
  • Which is Python 3.11 release date?

    Hi, I am waiting for the release of Python 3.11. Which is Python 3.11 release date? I have to migrate my project to Python 3.11 as it is over 60% faster. My company told me to migrate and test the project once Python 3.11 is releas

    Posted on: November 6, 2022 at 6:31 AM
  • installing opencv 4 on Ubuntu 22.04

    Hi, I want to install opencv 4.x for Python on my Ubuntu 22.04 desktop. What are the steps and command to do so. I have updated my Ubuntu 22.04 box by running sudo apt-get update command. What I should do next? Thanks

    Posted on: October 25, 2022 at 4:58 AM
  • command to install pip in ubuntu

    Hi, I recently installed Ubuntu 22.04 on my laptop. I am also installed Python 3 for development. I have requirement to install other Python packages. I want to install the pip in my Ubuntu. What is the command to install p

    Posted on: October 23, 2022 at 10:29 AM
  • python add one day to date

    Hi, I have date object and I want to add one day to the date. How to add one day to the date in Python code? Thanks

    Posted on: October 1, 2022 at 7:59 AM
  • how to convert yyyyMMdd to date in python

    Hi, I have a date string 20221231 and I want to convert it to the date in Python. how to convert yyyyMMdd to date in python? Thanks

    Posted on: October 1, 2022 at 7:35 AM
  • python if none then empty string

    Hi, I have a Python program that reads the data from a web service and parse the data. My program parse the json data and get the values from it by providing the key. For example example I am getting the client_name with following

    Posted on: September 18, 2022 at 5:58 PM
  • AttributeError: type object 'object' has no attribute 'dtype'

    Hi, I am using pandas in one of my Python program. But its throwing following error: File "/usr/local/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1221, in construct_1d_arraylike_from_scalar

    Posted on: September 13, 2022 at 5:24 AM
  • python requests get headers from response

    Hi, I have a program in Python which connects to the https server and get the data. First I have to ge the header details and find out the status. My server sends some specific information in the headers and I need to check for tha

    Posted on: September 6, 2022 at 6:47 AM

View all discussion for Python Questions and answers.