Answer:
Python Code
Explanation:
total = 0.0
change = 0.0
itemone = float(input("Enter the first price: "))
itemtwo = float(input("Enter the second price: "))
itemthree = float(input("Enter the third price: "))
total = itemone + itemtwo + itemthree
print("Total:", total)
cash = float(input("Cash given: "))
change = total - cash
print("Your change:", change)
Answer:
Most HTML tags are fixed
Explanation:
There are various kind of technology one can use for designing web application. A web designer should know HTML, CSS and other basic building block of web development.
HTML meaning hypertext markup language is used to define the basic structure of a web page . HTML has tags which are used to declare the contents on the web page. The tags includes anchor(<a>), paragraph tag(<p>),header tag(<h1>).
CSS which is known as Cascading style sheet describes the presentation of the web pages.
Other tags in HTML includes <img>, <link>, <ul> etc and generally this tags are HTML tags which are fixed for a particular kind of job . For example you can't use an image tag <img> to enclose video instead you use a video tag <video> tag. The header tag <h1> cannot be represented like a paragrapgh tag<p> on the web page. The both of them serve specific purpose and are fixed.
<span>Digital cameras are less susceptible to UV light. TRUE. In fact, there is an existing photography called Ultraviolet Photography. It is a process of photography that records images by using the light from the ultraviolet spectrum. There are two possible ways to use UV in taking photographs: via reflected UV and UV induced fluorescence.</span>
Plug it into pc and wahlah
Answer:
- common = []
- num1 = 8
- num2 = 24
- for i in range(1, num1 + 1):
- if(num1 % i == 0 and num2 % i == 0):
- common.append(i)
- print(common)
Explanation:
The solution is written in Python 3.
Firstly create a common list to hold a list of the common factor between 8 and 24 (Line 1).
Create two variables num1, and num2 and set 8 and 24 as their values, respectively (Line 3 - 4).
Create a for loop to traverse through the number from 1 to 8 and use modulus operator to check if num1 and num2 are divisible by current i value. If so the remainder of both num1%i and num2%i will be zero and the if block will run to append the current i value to common list (Line 6-8).
After the loop, print the common list and we shall get [1, 2, 4, 8]