questions/python
In Python 2, use urllib2 which comes ...READ MORE
The general pattern is str.split(search).join(replacement) This used to be ...READ MORE
Hii, Environment variables must be strings, so use os.environ["DEBUSSY"] ...READ MORE
from selenium import webdriver import time query = ('maps') if ...READ MORE
A raw string literal opens with a sequence of ...READ MORE
use lower() for lowercasing.example: "ALIREZA".lower() > ...READ MORE
This is because join is a "string" ...READ MORE
You can use the following: python yourfile.py You have ...READ MORE
to delete a file import os os.remove('filename') this will delete ...READ MORE
Hi, @Hari, Are you facing any error while ...READ MORE
Hi, @Ghazala, What is your exact query here? ...READ MORE
Pandas should be used when you are ...READ MORE
I don't know if you still need ...READ MORE
Tkininter comes with the columnspan argument to span the labels ...READ MORE
You can make use of this: ^(?=.*[a-zA-Z])(?=.*\d)(?=.*[!@#$%^&*()_+])[A-Za-z\d][A-Za-z\d!@#$%^&*()_+]{7,19}$ [A-Za-z\d] Ensures that ...READ MORE
Hi, First thing YAML and JSON are not ...READ MORE
In cases when we don’t know how ...READ MORE
shutil has many methods you can use. One ...READ MORE
Hi, You can try slice operator mylist[::3] to skip across to ...READ MORE
Hi @Neel, try this script: reservations = conn.get_all_instances(instance_ids=[sys.argv[1]]) instances ...READ MORE
The map() function in Python takes in ...READ MORE
Hi@akhtar, You can rearrange a DataFrame object by ...READ MORE
I got a lot of errors with ...READ MORE
No, .replace() does not support regex. Regular expressions ...READ MORE
well i think the sapi5 is not ...READ MORE
is it possible to take screenshot of ...READ MORE
I have ported the Python interpreter to ...READ MORE
Execute the following command on your terminal: python ...READ MORE
You can replace the three loops with: from ...READ MORE
It appears that a write() immediately following a read() on a ...READ MORE
df_subset looks like this: ...READ MORE
you can also check http://letsfindcourse.com/python for best ...READ MORE
Please go through this code. This should ...READ MORE
Python allows you to encode the source ...READ MORE
key is just a variable name. for key in ...READ MORE
can use numpy.reshape. In your case, pass 1 ...READ MORE
To report a bug, you can use the ...READ MORE
The scope of an alias command is the shell ...READ MORE
Here's an example for you: mat = [[10, ...READ MORE
Memory management in python involves a private heap ...READ MORE
import os try: os.makedirs(path) except ...READ MORE
How to read and generate QR codes ...READ MORE
If the strings you are concatenating are ...READ MORE
You have to define which type of ...READ MORE
The % (modulo) operator yields the remainder ...READ MORE
I would change the wording. Often in ML, ...READ MORE
Hi. Nice question. Here is the simplified answer ...READ MORE
The following code snippet might solve your ...READ MORE
It really depends on what you want ...READ MORE
First, write the data in a csv file. Then ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.