No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
The problem is that not all the data has the same format and the numbers you are looking for are in different "array" positions for some lines if you split those lines based on whitespace. For example: DE 15E0 TTA: 1 Generic Com port => Number 1 is at offset …
You will need to examine the length of each word to determine its length. The current compare is doing a lexicographic compare not a length compare. Use [icode]len()[/icode]
Keep things simple for the first iteration of the program and use ints instead of floats for reading in the values, i.e. [code=python] start=int(raw_input("Enter the starting value:")) [/code] Here is a hint for the next part of the program ... if you have two integers (start and end), you can …
The End.
stephendoyle75