Re: [Tutor] Python help

2016-10-17 Thread Andrew Koe
Hi,
 Also, you have a typo in your elif path == '2' statement.  It
should be rock = input('Do you want to pick up the rock') with one
equal sign not rock == input ('Do you want to pick up the rock').

-Andrew

On Sat, Oct 15, 2016 at 6:48 PM, Nicholas Hopkins
 wrote:
> Hello
> Please tell me what is wrong with my code and how I can put an if else 
> statement inside of another if else statement
> This is my code:
> path = input('Which path number will you take?')
> if path == '1':
>  print('You took the first path')
> elif path == '2':
>  print('You choose to take the second path')
>  print('You see a rock')
>   rock == input('Do you want to pick up the rock')
>   if rock == 'yes':
>   print('you picked up the rock')
>   else:
>   print('You left the rock')
> elif path == '3':
>  print('You choose to take the third path')
> else:
>  print('You must choose a number between 1 and 3')
>
>
> it comes up with this error
> [cid:image001.png@01D22792.63CCF290]
> Thanks
> Sent from Mail for Windows 10
>
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] using python shell program on windows

2016-10-17 Thread mpreisig .
Thanks a lot Peter and eryk for these very clear explanations. I was able
to install successfully using pip and run the program.
Best,
Matthias

> On Fri, Oct 14, 2016 at 4:52 PM, Peter Otten <__peter__ at web.de> wrote:
> >
> > python -m pip install timesheet
> >
> > on the commandline should take care of the details. On my (Linux)
machine
> > this also installed a script that I can invoke on the command line with
> >
> > $ timesheet start foo bar
> > Started task:
> > Subject foo
> > Title   bar
> > Start   2016-10-14 18:49
> > End
> > Duration00:00
> > $
> >
> > If that does not work on Windows there's probably a Windows user who
knows
> > what to try instead.
>
> I haven't used this package before, but I can attest that the wheel
> and its dependencies do install without error on Windows, and it
> appears to be working.
>
> It says it supports Python 3, but I discovered it has a raw_input call
> in the implementation of its start command. So I suggest using Python
> 2 instead.
>
> The installation creates a timesheet.exe script wrapper in Python's
> "Scripts" folder. Unless you're using a virtual environment, you'll
> have to add this directory to the PATH environment variable to run
> timesheet from the command line.
>
> Running timesheet warns about a missing configuration file,
> "%LOCALAPPDATA%\timesheetrc" (expanded for your %LOCALAPPDATA%
> directory). I created this as an empty file to avoid the warning.
>
> If you need to back up or delete the timesheet database, it's located
> at "%LOCALAPPDATA%\timesheet\timesheet.sqlite".


>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor