Skip to content
Advertisement

Tag: python-3.x

sqlite cursor fetchone() returns ‘NoneType’?

I want to build a function that returns the lowest row count from all tables if the two scores scor1 and scor2 are not both 0 : This is the result of the print statement: and this is the error: Answer After executing a query with execute, the query results will be available in a query result set, which you

Writing text over a PDF in python3

I am trying to write some string to a PDF file at some position. I found a way to do this and implemented it like this: It throws me an error at can.save() line The error : Have read up at a lot of places on the internet. Found the same method everywhere. Is it the wrong way to do.

File not found error in os.rename

I am trying to write a program to categorize into folders a large amount of files according to their respective groups indicated in the file name. I wrote the followin code, but when I run it it gives me a file not found error, even though the file is in the given path. I’d appreciate any help in figuring out

Python ValueError: float: Argument: . is not number on line 12

Ok, so I’m new to python and I’m currently taking the python for everybody course (py4e). Our lesson 7.2 assignment is to do the following: 7.2 Write a program that prompts for a file name, then opens that file and reads through the file, looking for lines of the form: Count these lines and extract the floating point values from

Advertisement