
December 7th, 2012, 11:28 AM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 3
Time spent in forums: 37 m 48 sec
Reputation Power: 0
|
|
|
Help!?
I am trying to write a program that finds any multiples of four between 0-100.
I have gotten this,
x = 0
while x < 100:
x += 1
if x % 4 == 0:
print, (x) ("is a multiple of 4")
But, when it tries to print it give me the error,
Traceback (most recent call last):
File "C:\Users\Jacobs\Desktop\Python\Multiples.py", line 6, in <module>
print, (x) ("is a multiple of 4")
TypeError: 'int' object is not callable
>>>
Any suggestions would be greatly appreciated,
Michael
|