#assign each word of the following sentence to a variable and print the statement using the variables and print function 'All work and no play makes Jack a dull boy.'
a=' All'
b=' work'
c=' and'
d=' no'
e=' play'
f=' makes'
g=' Jack'
h=' a'
i=' dull'
j=' boy.'
print(a+b+c+d+e+g+h+j)
#use paranthesis between operators
print(6*(1-2))
#bruce + 4 throws an error , name error as bruce is not defined
#asaigning bruce a value such that the result fot the above expr is 10
bruce=6
print(bruce+4)
#Write a Python program that assigns the principal amount of $10000 to variable P, assign to n the value 12, and assign to r the interest rate of 8%. Then have the program prompt the user for the number of years t that the money will be compounded for. Calculate and print the final amount after t years.