Question 1:
word = 'fast'
print '"',word,'" is nice' gives output as " fast " is nice.
How do i get the output "fast" is nice ie I want the spaces to be removed before and after word?
Question 2:
def faultyPrint():
print 'nice'
print 'Word is', faultyPrint() gives me output as
Word is nice
None
I want to have the output as Word is nice and None removed.
I don't want the output from
print 'Word is'
faultyPrint()
as it gives me output as
Word is
nice
How do I do that without altering the function and keeping the same output format?