
-----------------------------------
burmantanya
Sun Oct 12, 2008 8:59 am

confusion on looping :(
-----------------------------------
Hello Everyone on compsci.ca =)

i am working on this program..a lil bit confused..please let me know where i am going wrong
my task is to create a program which does the following things

- it has to get a number from the user
if the number is less than 10, it just prints 10
but if the number is greater than 10 less than 100, it keeps on dividing by 10 until lowest remainder is found and then converts the remainder into an aplhabet
and if the number is greater than 100 but less than 1000, it divides by 100 until lowest remainder is achieved and then divide by 10, and convert the remainder into alphabet but all the quotients are the answers.

for example:
666. divide 666 by 100. you get 6. left with 66. divide 66 by 10. you get 6 and are left with 6. that means the answer is 66F

here is a sample tryout i have till now..

def conv_num_alpha():

input_number = input(x)

if input_number < 10:
    print input_number

elif input_number 10