In Python, replace all the multiples of 3 from 1 to 123 with a First use in Python def main(): for num in range (1,124): print(num) Numbers from 1 to 123 appear Then I want to replace all the multiples of 3 with "a", all the multiples of 5 with "B", and all the common multiples of 3 and 5 with "C". How can I do that? It's Python 3.3

In Python, replace all the multiples of 3 from 1 to 123 with a First use in Python def main(): for num in range (1,124): print(num) Numbers from 1 to 123 appear Then I want to replace all the multiples of 3 with "a", all the multiples of 5 with "B", and all the common multiples of 3 and 5 with "C". How can I do that? It's Python 3.3

def main():
for num in range(1,124):
if num%3 == 0 and num%5 == 0:
print 'C'
elif num%3 == 0:
print 'A'
elif num%5 == 0:
print 'B'
else:
print num
if __ name__ == "__ main__ ":
main()