> print("The original quote is: {0}".format(quote))
> print("The new quote is:{0}".format(quote.replace(replaceWord,replaceWith)))
Hi Abid,
You should be able to change this to the equivalent code:
print("The original quote is: " + quote)
print("The new quote is:" + quote.replace(replac
On 17/08/14 15:50, abid saied wrote:
Hi,
I’m in the process of teaching myself python. Can someone have a look at
the text in red and explain please.
print("This program displays a given quote in different formats")
print() # Why is this needed?
Its not it only adds a bnlank line. You could
abid saied writes:
> I’m in the process of teaching myself python.
Congratulations, and welcome.
> Can someone have a look at the text in red and explain please.
Text comes through as text. Don't rely on fonts, colours, or other
non-text markup to survive.
If you want to draw attention to som
Hi,
I’m in the process of teaching myself python. Can someone have a look at the
text in red and explain please.
# String exercise 2
print("Quote Formatter")
print("This program displays a given quote in different formats")
print() # Why is this needed?
quote = input("Please enter a quote to fo