Re: [Tutor] Count for loops

2017-04-12 Thread D . V . N . Sarma డి . వి . ఎన్ . శర్మ
A lot of confusion is caused by the print function converting an integer or float to a string before printing to console. thus both '1234 and '1234' are shown as 1234 on the console. Similarly '15.4' and 15.4 are displayed as 15.4. There is no way to tell which is a string, which is an int and whic

Re: [Tutor] Question to Phyton and XBee

2017-04-12 Thread Alan Gauld via Tutor
On 12/04/17 15:32, Daniel Berger wrote: >For me it is not clear what is going wrong and I would be happy to get >some help to solve the problem. This list is for the core language and library, so while we can help with installing third party packages that doesn't mean anyone here will kno

Re: [Tutor] Startup Python

2017-04-12 Thread Alan Gauld via Tutor
On 12/04/17 13:47, Wim Berrelkamp wrote: a=2 Here you assign the number 2 to 'a' d=a+4 print(d) > 6 > a=input('-->' ) Here you assign whatever character(s) the user types to 'a'. The fact that it looks like 2 doesn't change the fact that it is really the character '2'. So you nee

[Tutor] Startup Python

2017-04-12 Thread Wim Berrelkamp
Dear Tutor, In earlier days I programmed a lot with Quick Basic in DOS. Now I retiered, I hoped to have Python as a platform. So I installed it and saw a lot of simmularity with Basic. I hope you can help me with the following, which should not be difficult, but I cannot find the solution. When

Re: [Tutor] Question to Phyton and XBee

2017-04-12 Thread Daniel Berger
Hello, thank you very much for your help. I have done a mistake during installation. I have tested the code for reading data from Xbee: #! /usr/bin/python # Import and init an XBee device from xbee import XBee, ZigBee import serial ser = serial.Serial('COM4', 9600) xbee = XBee(s