Q. Write instructions to get the following result:

Math is Fun so don't be resistant

Just learn the rules, the rules are consistent

And most important, you must be persistent!


Adding fractions, get common denominators.

Multiply by missing factors to get the denominators.

Add numerators only, NOT denominators.

Do it in both interactive mode and script mode.

Answer =


In interactive mode:


>>> print ("""Math is Fun so don't be resistant
Just learn the rules, the rules are consistent
And most important, you must be persistent!

Adding fractions, get common denominators.
Multiply by missing factors to get the denominators.
Add numerators only, NOT denominators.
""
")


In scripting mode:

print ("""Math is Fun so don't be resistant
Just learn the rules, the rules are consistent
And most important, you must be persistent!

Adding fractions, get common denominators.
Multiply by missing factors to get the denominators.
Add numerators only, NOT denominators.
""")


3 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post