User Profile

Collapse

Profile Sidebar

Collapse
nick john
nick john
Last Activity: Apr 29 '11, 01:46 AM
Joined: Mar 26 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nick john
    started a topic Duplicate Delete Program

    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...
    See more | Go to post

  • nick john
    started a topic How to check if a file exists?

    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
    See more | Go to post

  • nick john
    replied to Python if statements with strings.
    I'm using python 3.2. The indentation is off because I copy and pasted it out of a program.
    Thanks,
    Nick
    See more | Go to post

    Leave a comment:


  • nick john
    started a topic Python if statements with strings.

    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!")
    See more | Go to post
No activity results to display
Show More
Working...