December 20th, 2012, 08:22 PM
Need help with home work.
Hello i have a home work in python and i ant slove that.
Two qustion .
number one :
llow the user to enter two numbers, the first number is smaller than
the second number. Output “Programming is fun” between the intervals of
the two numbers except for when 5 is a factor of the number of the interval
then the program will output “DONT FORGET TO COMMENT”
PAWAP to output a list of squares of positive integers as long as the
difference between the squares is less than 50. The user will input the
i can use only if,print,loop,random. (no list)
Thank for any help
December 21st, 2012, 03:20 AM
And what you have done so far in terms of writing code?
Comments on this post
December 21st, 2012, 09:24 AM
Originally Posted by dariyoosh
I did the inputs but its not correct .
December 21st, 2012, 01:30 PM
Many python notations are used for strings.
'DON\'T FORGET TO COMMENT'
"DON'T FORGET TO COMMENT"
r'DON\'T FORGET TO COMMENT'
r"DON'T FORGET TO COMMENT"
'''DON'T FORGET TO COMMENT'''
"""DON'T FORGET TO COMMENT"""
I'm sure there are more.
What sort of help do you expect? We cannot suggest code improvements without knowing what you've got.
Please follow the link at my signature to find out how to preserve critical python spacing in your posts.
[/code] are essential for python code and Makefiles!