Margin because it is always on the end of document
Answer:
Following are the answer to this question:
x=int(input("Enter number: "))#defining x variable that input value from user end
if x< 0:#defining if block that check x value is less then 0
while x<0:#defining while loop print up to the value
print(x)#print value
x+= 1#add values by 1
elif x>0:#defining elif block to check value x is greater than 0
while x>0:#defining while loop to print down to value
print(x)#print value
x-= 1#subtract value by 1
Output:
when input is a positive value
Enter number: 5
5
4
3
2
1
when input is a negative value
Enter number: -5
-5
-4
-3
-2
-1
Explanation:
- In the given python code, x variable is declared that input the value from the user end, in the next step if and elseif block is declared that calculates and prints its value.
- In the if block, it checks value is negative it uses the while loop to prints its values in the down to value form.
- In the elif block, it checks the positive it uses the while loop to prints its values into the up to values form.
Answer:
With the Exclusive Lock, a data item can be read as well as written. Also called write lock. An exclusive lock prevents any other locker from obtaining any sort of a lock on the object. They can be owned by only one transaction at a time
Explanation:
Answer: a. set the display property of the element within each li element to inline
Explanation: In an unordered list, <em>ul</em> signifies the list and <em>li</em> signifies the elements in the list. When you want to display the elements in a list in a horizontal form, for example if you need a horizontal menu, a quick way of doing this is setting the display of li to inline by writing it as follows in css:
<em>li {
</em>
<em>Display: inline;
</em>
<em>}
</em>
This will order the elements in the list into the form of a horizontal menu
.
The answer is The Office Clipboard.
In most Microsoft Windows, Office Clipboard is used as a temporary storage for some software applications such as Microsoft Office Applications. It allows you to store up to 24 items either texts or graphics. For example, when you copy a text from one location this text will be temporarily stored in the clipboard until you paste them to another location.