Answer:
current_price = int(input("Enter the current price: "))
last_months_price = int(input("Enter the last month's price: "))
print("This house is $" + str(current_price))
print("The change is $" + str(current_price - last_months_price) + " since last month")
print("The estimated monthly mortgage is ${:.2f}".format((current_price * 0.051) / 12))
Explanation:
Ask the user to enter the current price and last month's price
Print the current price
Print the change in the price, subtract the last month's price from the current price
Print the estimated monthly mortgage, use the given formula to calculate, in required format
<span>Arrival protocols are the type of data protocols that convert data into standard formats that can be used by applications, such as email, Web browsers and Skype</span>
Answer:
shortNames = ['Gus', 'Bob','Zoe']
Explanation:
In this assignment, your knowledge of list is been tested. A list is data structure type in python that can hold different elements (items) of different type. The general syntax of a list is
listName = [item1, "item2", item3]
listName refers to the name of the list variable, this is followed by a pair of square brackets, inside the square brackets we have items separated by commas. This is a declaration and initialization of a list with some elements.
The complete python code snippet for this assignment is given below:
<em>shortNames = ['Gus', 'Bob','Zoe']</em>
<em>print(shortNames[0])</em>
<em>print(shortNames[1])</em>
<em>print(shortNames[2])</em>
Answer:
See attached picture.
Explanation:
See attached picture for detailed explanation.
Boost your self esteem and confidence.