Answer:
see explaination for program code
Explanation:
scalar_product = 0
li=[]
li2=[]
#reading numbers1.txt and numbers2.txt intoli and li2 respectively
with open('numbers1.txt') as n1, open('numbers2.txt') as n2:
for line1 in n1:
li.append(int(line1))
for line2 in n2:
li2.append(int(line2))
#storing min list size into variable l
a=len(li)
b=len(li2)
if a<b:
l=a
else:
l=b
#calculating scalar product
for i in range(l):
scalar_product=scalar_product+li[i]*li2[i]
print("scalar product is",scalar_product)
The thing which the second element in a pair of HTML tags contain is "/" and is known as the Closing Tag.
<h3>What is an HTML Tag?</h3>
This refers to the keywords that are used in the building block of a website to indicate how a web browser would interpret and display the content.
Hence, we can see that in HTML tags, there are always the Opening and Closing Tags that are used to enclose lines of code and when paired together are known as container tags.
Read more about HTML elements here:
brainly.com/question/9069928
#SPJ1
Answer:
13: 1101
5: 0101
10: 1010
2: 0010
Explanation:
The binary system, on the other hand, is a base-2 number system. That means it only uses two numbers: 0 and 1. When you add one to one, you move the 1 one spot to the left into the twos place and put a 0 in the ones place
what is done with the dice is to have an example of how binary numbers are made until 15
D WiFi
It uses wifi to connect to the internet