Hello. I'm stuck. My goal is that if the user loads the enter or wait 2 seconds it starts the "PowerBIT" but in an if / else statement and I do not know how to do it. Example:
#(...)
elif machine == "" or #tempo:
if temp >=20:...
I would like, for educational reasons, to log into facebook with a python script. I tried the requests
import requests
s = requests.Session()
post_url = 'https://www.facebook.com/login.php?login_attempt=1&lwv=110'
headers = {"User-agen...
I've done a scrapping in Python which takes a URL from any PDF, reads and returns, however in some PDFs I'm having the problem come with some characters like this:
". \ nO \ xc3 \ xb3rg \ xc3 \ xa3o also \ xc3 \ xa9m discloses
result \...
I have the following dictionary:
dic = {'bsx_8612': [23, 567, 632], 'asd_6375': [654, 12, 962], 'asd_2498': [56, 12, 574], 'bsx_9344': [96, 1022, 324]}
I want to retrieve the key whose value has the largest sum of its elements. How I am doi...
I need my script to write to a CSV file. The same will open a CSV file that has the column created_at (date and time), after that, the variable will be "broken" and will be written in a new CSV file the column day and time. However, it...
I need to create a script in Phyton that when run either by mouse click or 'enter' the keyboard, it opens the Linux terminal itself and executes any command inside it. I've already been able to get it to run the command, but as long as the scrip...
It is common to need to initialize a list in Python with a defined amount of elements and we can do this in two ways: 1) multiplying the list with one element by the desired quantity; or 2) use the list comprehensions technique.
Note:...
I think it's more out of curiosity.
Unlike other IDEs, IDLE keeps the program "open" even after the end of its execution, while in other IDE's I need to put something like 'input ()' at the end so the program will not be terminated until I enter...
I'm trying to figure out how this python properties issue works. But the problem is that in all the net tutorials out there I only find the damn example with only one attribute. I'm looking for an example where you have more to do with day to da...