Answer:
#Section 1
lst= []
lstNo=int(input("Enter even number of elements in List: "))
for i in range(0, lstNo):
pr=int(input(": " ))
lst.append(pr)
print(lst)
#Section 2
nlst=[]
dlst=[]
n =len(lst)
i=0
while (i < n/2):
nlst.append(lst[i])
i = i+1
j = n-1
while j >= n/2:
dlst.append(lst[j])
j = j-1
dlst.sort()
for a in range(len(dlst)):
nlst.append(dlst[a])
print(nlst)
Explanation:
#section 1:
An empty list is declared to hold the list inputs by the user <em>lst= []
</em>
The program then prompts the user to enter an even number of elements that will be contained in the list.
The for loop is used to iterate from zero(0) to the number of elements stated, in order to get the input that is appended to the list.
lastly, the list is printed out.
#Section 2:
In this section two new lists are created to hold one half of the value respectively.
The first list collects the first half of the list using a while loop and stores it, it does not perform any sorting on it.
The second list collects the second half using a while loop and sorts the list using the<em> .sort() </em>method which arranges elements in an ascending order.
Finally, the second list that has been sorted is added to the first and the result is printed to the screen.
A picture of how the code will run has been attached.
Answer:
9,-10,11,-12,13,-14,15,-16,17,-18,19,-20,21,-22,23,-24,25,-26,
27,-28,29,-30
Explanation:
It comes as positive and then as a negative number and continues in the same format.
Hope it helps....
Answer:
The best example for the DBMS is certainly the Microsoft Access. And various examples of RDBMS are MySQL, Sql Server, Amazon DynamoDB and so on. However, its essential to understand the difference between the RDBMS and the DBMS. The main difference between the two is certainly that in the RDBMS the application stores the data in tabular manner, and DBMS the data is stored as files. In the RDBMS the tables comes with identifier known as primary key, and the data values are being saved in the form of tables.
Explanation:
Please check the answer section.
Answer:
The answer is "Option b".
Explanation:
An access level denotes a set of data type permissions or restrictions, that reduces the access level, which is an effective way to reduce failure modes, debug time and system complexity. and other options are not correct, i.e. define as follows:
- In option a, In some of the cases, the system provides security, which is responded by the server to check the Eligibility of user, that's why it is not correct.
- In option c, The home address is always shown on the URL, that's why it is not correct.