Question: I am currently using Python to create a program that accepts user input for a two digit number and will output the numbers on a single line.

For Example:
My program will get a number from the user, lets just use 27

I want my program to be able to print "The first digit is 2" and "The second digit is 7"
I know I will have to use modules (%) but I am new to this and a little confused!

Answer: 
Try this:

```
val = raw_input("Type your number please: ")
for i, x in enumerate(val, 1):
    print "#{0} digit is {1}".format(i, x)

```
Think about the two digit number as though it were a string. It is easier to grab each digit this way. Using str() will change the integer to a string. Modulos allow you to place these strings into your text.

Assuming the user inputs 27 into the variable called num, the code is:

```
print 'The first digit is %s and the second digit is %s' % (str(num)[0], str(num)[1])

```