Answer:
Please check the attachment.
Explanation:
Please check the attachment for the program in python.
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:
True.
The code skips the else command
Explanation:
I will answer this question with the following code segment
<em>n = 1</em>
<em>If n > 0:</em>
<em> Print("greater than 0")</em>
<em>else:</em>
<em> Print("not greater than 0")</em>
<em />
From the code segment above
<em>Print("greater than 0")</em> will be executed because the condition <em>If n > 0 </em>is true
Since the if condition is true, the else condition will not be executed
Answer:
def main():
name = input("Enter your name: ")
age = input("Enter your age: ")
color = input("Enter you favorite color: ")
birth = input("Enter your birthday: ")
print(name + " is "+age+" year(s) old.")
print(name + "'s favorite color is "+color)
print(name + " was born on "+ birth)
main()
Explanation:
This is not my work the guy how did do this helped me so the credit go'es to him
Answer:
cannot be used outside of its intented purpose
Explanation: python keywords are special reserved words that have specific meanings and purposes and can't be used for anything but those specific purposes