[Tutor] Problems install pymqi

2016-08-19 Thread Ruby Student
Hello Team, I am having a bad day (actually second day) trying to get *pymqi *installed. Any help is greatly appreciated. Yesterday I installed Python on my desktop. I am trying to use the Python WebSphere MQ API and learn Python at the same time. *OS*: Windows 7 Enterprise x64 Edition, Build 760

[Tutor] Invalid syntax error in my program

2016-08-19 Thread Kalpesh Naik
Sir/Mam i am doing python language program of simple calculator but there was some errors in my program Please solve it and also guide me #SIMPLE CALCULATOR #1-Addition #2-Subtraction #3-Division #4-Multiplication #5-Modules while True: n=int(input("Enter your choice:")) a=int(input("Ente

[Tutor] Random time code

2016-08-19 Thread Simon Le-Talbot
Hi , I have recently purchased a Raspberry pi3 and I am wanting to turn a light on and then have it turn off at a random time between 3 and 8 seconds. Each time I turn the light on I want it to turn off at a different time ( just like the race start lights in formula 1). Code you possible help

Re: [Tutor] Invalid syntax error in my program

2016-08-19 Thread Alan Gauld via Tutor
On 19/08/16 15:36, Kalpesh Naik wrote: > #SIMPLE CALCULATOR > while True: > n=int(input("Enter your choice:")) > a=int(input("Enter 1st value:")) > print("1st value is:",a) > b=int(input("Enter 2nd value:")) > print("2nd value is:",b) > if n==1: > c=a+b > p

Re: [Tutor] Random time code

2016-08-19 Thread Alan Gauld via Tutor
On 18/08/16 12:41, Simon Le-Talbot wrote: > Hi , I have recently purchased a Raspberry pi3 and > I am wanting to turn a light on and then have it > turn off at a random time between 3 and 8 seconds. The time module will give you the current time in seconds. It also provides the sleep() function

Re: [Tutor] Problems install pymqi

2016-08-19 Thread Alan Gauld via Tutor
On 19/08/16 16:30, Ruby Student wrote: > Hello Team, > > I am having a bad day (actually second day) trying to get *pymqi *installed. > Any help is greatly appreciated. > Yesterday I installed Python on my desktop. I am trying to use the Python > WebSphere MQ API and learn Python at the same time.