Skip to content
Advertisement

Tag: python-3.x

Drive API – Save file ID with Python

I´m triying to use Google Drive API quickstart to save all files ids with Python. I want to save files ids in a txt document This is my code I want to save all files ids,but my program is not working properly only saves the last file id What is happening? Answer Delete from (for items in items:) to (archivo.close())

pushing and poping into new list

I am trying to make a loop that if the program sees a letter or number it will push(x) into a new list and if it sees an asterisk * it must pop(). It is more of a stack algorithm where the first letter or number in is the last one out. FILO First in last out For example If

Advertisement