mentby.com
Blog | Jobs | Help | Signup | Login

loading
If you're using the interpreter, you can type this command:

    >>> help(file)

And it will display documentation for using objects of that type.
You can also use this command:

    >>> dir(file)

And it will display all the members and methods that the object provides.

--
John Gordon                   A is for Amy, who fell down the stairs
gordon*******             B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

python backup script

Mon, 06 May 2013 15:27:18 -0700 Post Comments

Looks like you need a comma after 'stdout=filename'.

--
John Gordon                   A is for Amy, who fell down the stairs
gordon*******             B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"
You're missing a second closing parentheses on the line where the user
inputs their guess.

Also, you need to indent the 'if' statement underneath the while loop.

--
John Gordon                   A is for Amy, who fell down the stairs
gordon*******             B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

Read more »

Profile Widget
Copy and paste this HTML code to your blog or website: