For example, the following prompt can be displayed:
'Enter a number between 1 and 1O:'
5 (this is your input)
And the output should look like:
The number multiplied by 2 is: 10
The square of this number is: 25
In the string above, find out whether it contains the word'dollar' . If yes, print True.
num=input('Enter a number between 1 and 1O:')
num=int(num)
print('The number multiplied by 2 is:',num*2 )
print('The square of this number is:',num*num)
2.
subject = 'Get some dollars!'
if 'dollar' in subject:
print(True)