Answer:
a=int(input("Enter a numerator: "))
b=int(input("Enter a divisor: "))
quotient=a/b
remainder=a%b
print("Quotient is: " + str(int(quotient)))
print("Remainder is: " + str(int(remainder)))
That's 2.3 question 1
a_ft = int(input("Enter the Feet: "))
a_inc = int(input("Enter the Inches: "))
b_ft = int(input("Enter the Feet: "))
b_inc = int(input("Enter the Inches: "))
sum_inc = a_inc + b_inc
# select the whole and the fractional part
inc_to_ft = sum_inc // 12
rem_from_div = sum_inc % 12
sum_ft = a_ft + b_ft + inc_to_ft
print("Feet: {} Inches: {}".format(sum_ft, rem_from_div))
That's 2.3 question 2
Explanation:
I wasn't sure which one you needed so I added both.
Click Tools, Internet options. ...The Internet Options window will open. ...Click Apply, OK to close the window.Click the wrench icon in the top-right corner of the browser.Select Options.In the 'On startup' section, select Open the home page.options window will open. Go to the Startup section and select When Firefox starts: Show my home page.. In the Home Page field, type in the website address you want to use as your home page.Click OK.
Answer:
Here you go, alter this as you see fit :)
Explanation:
array = []
cnt = 0
while cnt < 11:
x = input("Enter a word: ")
array.append(x)
cnt += 1
y = input("Add another word?(Y/n): ")
if y.lower() == "n":
break
letter = input("\nChoose a letter: ")
if len(letter) != 1:
print("Error: too many characters")
quit()
for n in range(len(array)):
if letter.lower() in array[n].lower():
print(array[n], end= ",")