questions/python
Hey, @Natraj, This basically means that no response ...READ MORE
Same problem here bro! READ MORE
Variables declared inside the class definition, but ...READ MORE
An abstract function cannot have functionality. You're basically ...READ MORE
Appends object at the end. x = [1, ...READ MORE
The default implementation is useless (it’s hard ...READ MORE
Interfaces An interface is a contract: The person writing ...READ MORE
I am trying to create a booking ...READ MORE
Hello @S.P.D, First try to check your python ...READ MORE
Hello @ Anee, Code: num1 = int(input("Enter First Number: ")) num2 ...READ MORE
Hello, Try to downgrade protobuf, this worked for ...READ MORE
Here is my code: import pandas as p import ...READ MORE
On Ubuntu, I was running Python 3 ...READ MORE
The SimpleHTTPServer module has been merged into http.server in Python 3.0. ...READ MORE
Yes. Use os.path.splitext >>> import os >>> filename, file_extension = ...READ MORE
if You Want to convert int to ...READ MORE
Hi,@Sashi, Generally, all the scripting languages are considered ...READ MORE
Hii, In express 4.x: req.get('Referrer') This will also check both spellings of ...READ MORE
How to read and generate QR codes ...READ MORE
Hey, @Sushruth, Here the code goes for Motion Detector.py import ...READ MORE
>>> x = "Hello World!" >>> x[2:] 'llo World!' >>> ...READ MORE
Instead of using the /regex/g syntax, you can construct ...READ MORE
In Python 3, you can use the sep= and end= parameters ...READ MORE
string='My long string' if [[ $string == ...READ MORE
Just import file without the '.py' extension. You can mark ...READ MORE
in is the intended way to test for ...READ MORE
Do not use with pip > 10.0! My ...READ MORE
It seems that the problem is not ...READ MORE
Instead of doing a import like __import__ you can ...READ MORE
Loop through the $forbiddennames array and use stripos to check if ...READ MORE
You can use the strpos() function which is used ...READ MORE
The general pattern is str.split(search).join(replacement) This used to be ...READ MORE
You need to decode the bytes object ...READ MORE
You could use in to check if a string ...READ MORE
if "ABCD" in "xxxxABCDyyyy": ...READ MORE
with in: substring in string: >>> substring = "please help ...READ MORE
Try using in like this: >>> x = 'hello' >>> y ...READ MORE
You can use the in operator: if "blah" not in ...READ MORE
Hello @Mziko You can refer this:https://datatofish.com/txt-files-d ...READ MORE
1. I have a folder with multiple ...READ MORE
I just copied the DLL pywintypes27.dll in C:\Python27\Lib\site-packages\pywin32_system32. I added it ...READ MORE
Hello, Turtle.pen is used to set/get pen attributes ...READ MORE
H= float (input("Is this circuit charging& ...READ MORE
Assuming that both your directories are real ...READ MORE
On Python ≥ 3.5, use pathlib.Path.mkdir: from pathlib import ...READ MORE
For Python 3.5+ use: import importlib.util spec = importlib.util.spec_from_file_location("module.name", ...READ MORE
Assuming module foo with method bar: import foo method_to_call = getattr(foo, 'bar') result ...READ MORE
With Python older than 2.7/3.1, that's pretty ...READ MORE
There is no simple built-in string function ...READ MORE
Using scan should do the trick: string.scan(/regex/) 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.