Answer:
The correct option is b) embed
Explanation:
a. data
: In html there is no such element or tag named data to specify during embed a flash file
b. embed
: You need to specify the embed element tag which include attributes like src, width, height. the tag looks like embed src="" width="" height=""embed. In this you have to specify values for src, width, height etc.
c. link
: In html there is no such element or tag named link to specify during embed a flash file
d. frame: In html there is no such element or tag named frame to specify during embed a flash file
Answer:
In Python:
mystr = input("Sentence: ")
mylist = []
word = ""
for i in range(len(mystr)):
if not i == len(mystr)-1:
if not mystr[i] == " ":
word+=mystr[i]
else:
mylist.append(word)
word = ""
else:
word+=mystr[i]
mylist.append(word)
print(mylist)
Explanation:
Prompt the user for an input sentence
mystr = input("Sentence: ")
Initialize an empty list
mylist = []
Initialize each word to an empty string
word = ""
Iterates through the input sentence
for i in range(len(mystr)):
If index is not the last, the following if condition is executed
if not i == len(mystr)-1:
If the current character is not space
if not mystr[i] == " ":
Append the character to word
word+=mystr[i]
If otherwise
else:
Append word to the list
mylist.append(word)
Set word to an empty string
word = ""
If otherwise; i.e. If index is not the last
else:
Append the last character to word
word+=mystr[i]
Append word to the list
mylist.append(word)
Print the list
print(mylist)
Florida is 1,344.8 miles from oklahoma
B. Click the Insert tab and choose chart.
Answer:
The python program is given with appropriate comments
Explanation:
#Implementation of printStars function
def printStars(n):
#check if n is greater than 0
if n>0:
for i in range(n):
print ('*', end="")
#Declare starCount and initialize some negative integer
starCount = -8
if starCount>0:
print ('*', end="")
printStars(starCount-1)