Answer:
couple.py
def couple(s1,s2):
newlist = []
for i in range(len(s1)):
newlist.append([s1[i],s2[i]])
return newlist
s1=[1,2,3]
s2=[4,5,6]
print(couple(s1,s2))
enum.py
def couple(s1,s2):
newlist = []
for i in range(len(s1)):
newlist.append([s1[i],s2[i]])
return newlist
def enumerate(s,start=0):
number_Array=[ i for i in range(start,start+len(s))]
return couple(number_Array,s)
s=[6,1,'a']
print(enumerate(s))
print(enumerate('five',5))
Explanation:
Answer:
nrToCheck = int(input("How many numbers do you need to check? "))
nrEven = 0
nrOdd = 0
for i in range(nrToCheck):
number = int(input("Enter number: "))
if (number % 2):
nrOdd = nrOdd + 1
print("{} is an odd number".format(number))
else:
nrEven = nrEven + 1
print("{} is an even number".format(number))
print("You entered {} even number(s).".format(nrEven));
print("You entered {} odd number(s).".format(nrOdd));
Solution:
In the game Singularity, broken objects can be restored to their original condition by reversing time. This is an example of which time element of player adjustment.
Thus the required answer is player adjusted.
Answer:
6 hosts can have IP addresses on the LAN attached to the router interface
Explanation:
Given IP address
=> 192.168.192.10/29
It has a subnet mask of /29 which means it has 3 host bits. This is calculated by subtracting 29 from 32(number of bits in an IPV4)
Since there are 3 host bits, the total number of possible addresses is given by
=>
= 8 possible addresses.
Out of these 8 possible addresses, the first address will be the subnet id and the last address will be the broadcast address.
Therefore, there are only 6 addresses available for the hosts.
<em>Hope this helps!</em>
A single digit of 1 or 0 in the binary code is called a bit. It is the smallest possible unit of data for a computer. The only possible values for a bit is either zero or one. These values decide which paths the current can flow and which paths are blocked. Bits can represent two states namely, true and false or low and high.