Answer:
Output of the program is following
sum=45
Explanation:
The execution of the program in the "for" loop will be following
For k=0
=> val=1 and sum=0+1=1
For k=1
=> val=2 and sum=1+2=3
For k=2
=> val=3 and sum=3+3=6
For k=3
=> val=4 and sum=6+4=10
For k=4
=> val 5 and sum=10+5=15
For k=5
=> val=6 and sum=15+6=21
For k=6
=> val =7 and sum=21+7=28
For k=7
=> val=8 and sum=28+8=36
For k=8
val=9 and sum=36+9=45
So all the iterations of for loop are completed and the output is 45.
I hope it will help you!
Answer:
- (c) canvas
- (b) yes
- N/A
- (c) variable
- (c) making a prototype i think
please correct me if im wrong
Answer:
The question is incomplete and should read as follows:
Victoria is working on a computer that was infected with a virus when a client clicked on a link and downloaded a Trojan. Victoria researched the virus and learned that the virus might have written itself into System Restore. What does Victoria need to do to run the antivirus software on System Restore?
This issue can be fixed by taking the following steps:
A. Disable System Protection.
B. Back up the restore point.
C. Enable System Protection.
D. Run the antivirus software on a restore point.
The system is then restored to the now clean restore point to rid the computer completely of the virus.
Explanation:
def is_even_number(n):
return True if n % 2 == 0 else False
while True:
number = int(input("Enter a number: "))
if number == 0:
break
else:
if is_even_number(number):
print("Even")
else:
print("Odd")
I wrote my code in python 3.8. I hope this helps.
Answer:
so that the required content wont be edited