Answer:
word = str("Enter a word: ")
if "mold" in word:
print("Mold is in the variable word.")
else:
print("Mold is not in the variable word.")
Alfred Wegener was the one who came up with the Pangea.
Answer:
Explanation:
For example with the hierarchical network design of Cisco (three-layer) it is worth mentioning the following benefits:
- This type of infrastructure is highly reliable
- The complex problem regarding network design is broken into smaller and manageable areas.
- Improved access, access, core layers and distribution
- The hierarchy provides specific functions important in defining its role within the whole network.
Regarding the access layers in the hierarchy the following are core benefits:
- Layer 2 switching
- Virtual access control lists (VACLs)
- Power over Ethernet (PoE) and auxiliary VLANs for VoIP
- Spanning tree
- High availability
- Port security
- Address Resolution Protocol (ARP) inspection
In Python 3.8:
nums = list(map(int, input("Enter your numbers space separated: ").split()))
print(f"The largest number is {max(nums)} and the average of all the numbers entered is {sum(nums)/len(nums)}")
Answer:
price = float(input("Enter amount of a purchase: "))
shipping_price = 0.12* price
NJ_sales_Tax = 0.07*price
print('The price of item is {}'.format(price))
print('The Cost of Shipping is {}'.format(shipping_price) )
print('New Jessey Sales Tax is {}'.format(NJ_sales_Tax))
total_bill = shipping_price+NJ_sales_Tax+price
print('Total Bill {} ' .format(total_bill))
Explanation:
- Prompt User for input of the amount of purchase
- Calculate the shipping cost (12% of purchase price)
- Calculate the tax (7% of the purchase price)
- Use python's .format method to output an itemized bill