Answer:
size = int(input("How many names will be there? "))
names = []
for _ in range(0, size):
name = input("Enter a name: ")
names.append(name)
names.sort()
print(names[0] + " " + names[-1])
Explanation:
* The code is in Python
- Ask the user for the number of the name
- Initialize an empty list that will hold the name entered
- Inside the for loop, get the names and put them in the names array
- When all the names are entered, sort them and print the first and last of the name
Answer:
Check the explanation
Explanation:
223.1.17/24 indicates that out of 32-bits of IP address 24 bits have been assigned as subnet part and 8 bits for host id.
The binary representation of 223.1.17 is 11011111 00000001 00010001 00000000
Given that, subnet 1 has 63 interfaces. To represent 63 interfaces, we need 6 bits (64 = 26)
So its addresses can be from 223.1.17.0/26 to 223.1.17.62/26
Subnet 2 has 95 interfaces. 95 interfaces can be accommodated using 7 bits up to 127 host addresses can represented using 7 bits (127 = 27)
and hence, the addresses may be from 223.1.17.63/25 to 223.1.17.157/25
Subnet 3 has 16 interfaces. 4 bits are needed for 16 interfaces (16 = 24)
So the network addresses may range from 223.1.17.158/28 to 223.1.17.173/28
He also includes the method this day. getday() in the code.
The getDay() method produces the day of the week for the specified date according to local time, where 0 means Sunday. For the day of the month, see Date. prototype. getDate()
<h3>What will the getDay () function of date object return?</h3>
getDay() process is used to fetch the day of a week(0 to 6) from a given Date object. Parameter: This form does not accept any parameters. Return Values: It produces the day of the week for the given date.
To learn more about getday() , refer
brainly.com/question/17570484
#SPJ4