Answer:
Output:
15
20
25
Explanation:
In first iteration value of num is 10. Condition is checked 10 is less than 21 so value of num is incremented by 5 and value 15 is printed than again condition is checked 15<21 so value of num is incremented again and 20 is printed. Again condition is checked 20<21. So 25 is printed. Then 4th time when condition is checked vakue of num is 25 and while loop condition becomes false because 25 is not less than 21 and program is terminated here.
Answer:
Explanation:
The following code is written in Python. It asks the user for an input. Then cleans the input using regex to remove all commas, whitespace, and apostrophes as well as making it all lowercase. Then it reverses the phrase and saves it to a variable called reverse. Finally, it compares the two versions of the phrase, if they are equal it prints out that it is a palindrome, otherwise it prints that it is not a palindrome. The test case output can be seen in the attached picture below.
import re
phrase = input("Enter word or phrase: ")
phrase = re.sub("[,'\s]", '', phrase).lower()
reverse = phrase[::-1]
if phrase == reverse:
print("This word/phrase is a palindrome")
else:
print("This word/phrase is NOT a palindrome")
Answer:
2.
Explanation:
Annotating in PowerPoint is the create notes while delivering a PowerPoint presentation. This could be done in two ways.
First, right click with the mouse and select 'pointer options'. Then you can choose either pen or highlighter to circle certain word or highlight any line.
The second way of creating annotation is by going to View→Normal→Notes.
After you select 'notes', a pane will appear at the bottom of your presentation.
So, the correct answer that annotation tools menu is available in Normal. Thus option 2 is correct.
Answer: an antivirus is a type of program designed to protect computers from viruses, spyware, botnets, rootkits, keyloggers and such. There are many versions and types of anti-virus programs which can be very helpful.
Such as:
Norton.
Kaspersky.
Ad Aware.
AVG
Mc Afee
Hope this helps u...
Explanation:
Answer:
Explanation:
(i) L1+L2 Error:
L1=[10,12,14]
L2=[20,22,24] # {n. 2 delete}
L1+L2
ans =
30 34 38
(ii) L1*2
ans =
20 24 28
(iii) L1
L1 =
10 12 14