On 05/07/2015 02:57 PM, Tudor, Bogdan - tudby001 wrote:
Hi,
This is my first time.
First time doing what? Presumably the first time on this forum. But
what is your history of using Python, or of programming in general?
I am using python 3.4.3 on windows 7 64bit.
I am trying to make a binary counter that will prompt for and read a decimal
number (whole number). Then display all decimal numbers starting from 1 up to
and including the decimal number entered along with the binary representation
of the numbers to the screen.
I expected nesting a bunch of loops over and over again would work, what I've
realized is that there must be an easier way of coding this without repeating
loops, I just cannot for the life of me work this out. What I'm doing at the
moment is writing way to much code over and over again.
https://github.com/rks1337/binary-counting/blob/master/binary%20counting
Sorry I'm not sure how to use inline quoting on outlook online.
I can't answer for outlook, but normally you add stuff to your message
by using copy/paste. On Windows, that's Ctrl-C, Ctrl-V
I can't comment on the specifics of your code, since it's online rather
than in your message.
--
DaveA
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor