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]
Answer:
Explanation:
The following Python program uses a combination of dictionary, list, regex, and loops to accomplish what was requested. The function takes a file name as input, reads the file, and saves the individual words in a list. Then it loops through the list, adding each word into a dictionary with the number of times it appears. If the word is already in the dictionary it adds 1 to its count value. The program was tested with a file named great_expectations.txt and the output can be seen below.
import re
def wordCount(fileName):
file = open(fileName, 'r')
wordList = file.read().lower()
wordList = re.split('\s', wordList)
wordDict = {}
for word in wordList:
if word in wordDict:
wordDict[word] = wordDict.get(word) + 1
else:
wordDict[word] = 1
print(wordDict)
wordCount('great_expectations.txt')
The CPU performs basic arithmetic, logic, controlling, and input/output (I/O) operations specified by the instructions in the program. This contrasts with external components such as main memory and I/O circuitry, and specialized processors such as graphics processing units (GPUs).
Answer:
The corresponding schemas I use such as given below.
Explanation:
- <u>Dim</u>: Used in the design for certain artifacts belonging to measurements.
- <u>Fact</u>: Used for these artifacts throughout the design relevant to the truth
- <u>Admin</u>: Used for all configuration-related artifacts that could be open to professional end-users.
- <u>Audit</u>: That used to hold audit-related particles.
- <u>Etl</u>: Is used for keeping objects, particularly staging details, directly connected to something like the ETL method.
- <u>Report</u>: Used to keep objects utilized explicitly for programs for documentation.
- <u>Olap</u>: Used for keeping objects directly used for systems for study.
- <u>Test</u>: Used to carry objects which have been used exclusively for research.
- <u>Useful</u>- Used to carry objects that just about any member including its implementation may typically use.
Answer:
Switch SW2 seems to have a greater VTP revision number that creates the VLAN data to be deleted in the VTP domain.
Explanation:
Switch SW2 became examined and eventually placed into another production network. Prior to connecting the trunk connection among both SW1 and SW2, the service provider admin enacted the exhibit vtp status instruction as shown in the monitor. Both clients missed access to the network shortly when the switches got linked.
So, the possible reason for the issue is to Switch SW2 tends to have a larger VTP modification percentage allowing that VLAN data to be removed from the VTP domain.