questions/python
Hello @kartik, Use join: >>> sentence = ['this','is','a','sentence'] >>> '-'.join(sentence) 'this-is-a-sentence' Hope it ...READ MORE
I have created my kafka consumer. Now ...READ MORE
Deep copy - dict2 = dict(dict1) Shallow copy - dict2 ...READ MORE
If you have 2.x or 3.x version ...READ MORE
The division operator is /, not \ READ MORE
Hi, @There, The print() function prints the specified message to the ...READ MORE
Hi @Rahul. I have been a Python ...READ MORE
can you give me the exact code ...READ MORE
Hello, I have a dataframe that contain ...READ MORE
kwargs in **kwargs is just variable name. You can very ...READ MORE
Call dict with no parameters new_dict = dict() or simply write new_dict ...READ MORE
Here is my code: import pandas as p import ...READ MORE
Loop through the $forbiddennames array and use stripos to check if ...READ MORE
You can use in operator to access ...READ MORE
How can I convert a list to ...READ MORE
What are each's advantages and drawbacks? I've noticed ...READ MORE
raw_input was used in Python 2 version ...READ MORE
In object-oriented programming languages like Python, an ...READ MORE
Can you give an example? READ MORE
Here is what you asked for: from functools ...READ MORE
we can use OrderedDict import collections result = colections.Ord ...READ MORE
While making POST requests how can we ...READ MORE
with open(fname) as f: ...READ MORE
with in: substring in string: >>> substring = "please help ...READ MORE
After splitting the string, how does parsing ...READ MORE
You can try something like this: import numpy ...READ MORE
ah, sqlite3 stuff... remove .session file and ...READ MORE
I am trying to implement method overloading ...READ MORE
You need to decode the bytes object ...READ MORE
For the python idle 3.8 it's better ...READ MORE
from smtplib import SMTP import datetime debuglevel = 0 smtp ...READ MORE
It is used to denote directories on ...READ MORE
a,b = b,a Here, python interprets the comma ...READ MORE
Look at the subprocess module in the standard library: import ...READ MORE
Try using the following expression: Grep -o "TEST:d+" ...READ MORE
If you are on Debian/Ubuntu, you can ...READ MORE
can you give an example using dataframe? READ MORE
Yes, you can str() function. For example: a=10 str(a) output-' ...READ MORE
Hi@Rahul, You are trying to use configparser module. ...READ MORE
I just came across this Python code, ...READ MORE
Hi All, I am trying to download files ...READ MORE
On Python ≥ 3.5, use pathlib.Path.mkdir: from pathlib import ...READ MORE
One approach just generates random integers up ...READ MORE
READ MORE
Sleep function plays a very important role ...READ MORE
Follow these steps; Install Git and other dependencies Fork the ...READ MORE
Using Job Objects. First you need to ...READ MORE
I have some dictionary of values that ...READ MORE
In general, copy.copy() or copy.deepcopy() works perfectly ...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.