Answer:
It's a compact way of doing an if-else statement.
General Format is
<<em>condition</em>> ? <if condition is true> : <else>;
Example:
I could rewrite:
if(a==1) temp = 1;
else temp = 999;
as
temp = (a==1) ? 1 : 999;
True because that's what i said it is
Answer:
number = int(input("Enter number: "))
if (number % 4):
print("{} is not divisible by 4".format(number))
else:
print("{} is divisible by 4".format(number))
Explanation:
If the %4 operation returns a non-zero number, there is a remainder and thus the number is not divisable by 4.
Answer:
Yes it has brought change in every field
Explanation:
- <em>Take stock. Know what personal information you have in your files and on your computers.</em>
- <em>Scale down. Keep only what you need for your business.</em>
- <em>Lock it. Protect the information that you keep.</em>
- <em>Pitch it. Properly dispose of what you no longer need.</em>
- <em>plan </em><em>ahead</em>
<em>hope </em><em>it</em><em> helps</em>