Skip to content

Tag: python

How to print specific number right of the decimal point

Hey everyone i need to print number right of the decimal point like if i input 1.45 it needs to output 4 because its first number after point i also tried multiplying by 10 or 100 but i dont know much numbers will be after point so if there is 3 numbers after point youn still need to print the

screenshot tool not working to take screenshot of left side

I have a tool to capture screenshots but this tool only captures screenshots when you hold button-1 and move to the right side, when you hold button-1 and move it to the left side or up, it does not capture the screenshot, what is the reason and how can I fix it? I thought about it, but I think it’s

Repeat list elements based in another list

I would like to repeat elements from one list based in a second list, like this: I’ve got this result: I’d like to get this result: Answer You may iterate on both list together, using zip, then increase i until you reach the bound of the current value

Python: href tag TypeError

I tried running my web scraping code. Sometime it works fine, but sometime it will give me Traceback Type Error code. I am wondering what is causing the error code? Here is the error message: Answer You have to check if nextLink is not None before you try to get [‘href’] and when nextLink is None …

How to use dictionary in oop to store data

i want to ask you i want to store all informations in dictionary for this code but i can’t i know that something i did wrong.I like to store informations from Customers if issue take a hourly , monthly or daily it is on BikeRental request bikes what i tried by far is any way? Answer If you just wanted