User Profile
Collapse
-
Duplicate Delete Program
I am new to python and would appreciate if someone could point me in the right direction. I want to create a program that allows the user to enter a directory where some files are located and give them the option to delete any files with the same file name. It would be useful for music. I have a lot of music and in many case a couple files for the same song. I figured the best way to write this would be by reading the name of each file and writing... -
How to check if a file exists?
I don't want to create the file if it dosen't exist I just want to see if it's there. Like have a variable return True if it is in fact there.
Thanks,
Nick -
I'm using python 3.2. The indentation is off because I copy and pasted it out of a program.
Thanks,
Nick -
Python if statements with strings.
Why does this not work? Why does this not return "good im glad". Sorry i'm a beginner.
Code:x = str(input("Hello how are you?")) if x == "very good": print("Good Im Glad To Hear That!") else: print("I'm Sorry!")
No activity results to display
Show More
Leave a comment: