questions/python
To answer your first question... .format just ...READ MORE
It is important to remember when using ...READ MORE
math.isnan() Checks if the float x is a ...READ MORE
You can not directly concatenate two different ...READ MORE
I can't reproduce it on Python 3.3. ...READ MORE
For reference—future Python possibilities: Starting with Python 2.6 you ...READ MORE
>>> d = {'key':'value'} >>> print(d) {'key': ...READ MORE
mylist = [1, 2, 3] ‘’.join(map(str, mylist)) ==> ...READ MORE
You're missing a close paren in this ...READ MORE
What i found is that you can use ...READ MORE
The theoritical approach can be this way, re.match is ...READ MORE
The recommended path for Python 3.10 which ...READ MORE
while True means loop forever. The while ...READ MORE
The canonical solution in the standard library ...READ MORE
append: Appends object at the end. x = ...READ MORE
There is no do...while loop because there ...READ MORE
Normally, in Python, you want your code ...READ MORE
following way to find length of string x ...READ MORE
Hey @abhijmr.143, you can print array integers ...READ MORE
replace() is a method of <class 'str'> ...READ MORE
The reason you need to use self. ...READ MORE
This should be as simple as: with open('somefile.txt', ...READ MORE
Lists are a mutable type - in ...READ MORE
Try this instead: lst = [None] * 10 The ...READ MORE
The %s specifier converts the object using ...READ MORE
es, remove removes the first matching value, ...READ MORE
Yes, if bar is not None is ...READ MORE
How about: >>> 'hello world'[::-1] 'dlrow olleh' This is ...READ MORE
Static methods are used when we need ...READ MORE
No, Python does not support labels and ...READ MORE
Try this ''' This is a multiline comment. ...READ MORE
map isn't particularly pythonic. I would recommend ...READ MORE
Use tabs instead of spaces. This is ...READ MORE
Use the shutil module. copyfile(src, dst) Copy the contents ...READ MORE
Perhaps you're trying to catch all exceptions ...READ MORE
You can use the function text.split() This should be ...READ MORE
According to what I know, When the Python ...READ MORE
You can use it to raise errors ...READ MORE
It is not possible to sort a ...READ MORE
This is because join is a "string" ...READ MORE
Try items = ["live", "like", "code", "cool", "bug"] ...READ MORE
Thread is the smallest unit of processing that ...READ MORE
you can also do the old fashioned ...READ MORE
with open("test.txt", "a") as myfile: myfile.write("appended text ...READ MORE
importlib is recent addition in Python to ...READ MORE
There are few differences between Python and ...READ MORE
When you want to increment or decrement, ...READ MORE
Try: from random import randint print(randint(0, 9)) More info: ...READ MORE
try: doSomething() except: pass or try: doSomething() except Exception: ...READ MORE
if x == 'a': # Do the ...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.