Answer:
Explanation:
pop(): Remove an item from the end of an array
push(): Add items to the end of an array
shift(): Remove an item from the beginning of an array
unshift(): Add items to the beginning of an array
To accomplish this without using a loop,
we can use math on a string.
Example:
print("apple" * 8)
Output:
appleappleappleappleappleappleappleapple
In this example,
the multiplication by 8 actually creates 8 copies of the string.
So that's the type of logic we want to apply to our problem.
<span>def powersOfTwo(number):
if number >= 0:
return print("*" * 2**number)
else:
<span>return
Hmm I can't make indentations in this box,
so it's doesn't format correctly.
Hopefully you get the idea though.
We're taking the string containing an asterisk and copying it 2^(number) times.
Beyond that you will need to call the function below.
Test it with some different values.
powersOfTwo(4) should print 2^4 asterisks: ****************</span></span>
Yes
Because the x bigger than the y
Answer:
component of a strong community is describe below
Explanation:
there are five element key of successful community are
Strategy , Content , Engagement, Visibility and Moderation
and these express as
-
Strategy : For a network to be effective, communities must create a process that aligns with the organization's vision, characteristics and goals. In addition, the network must have official group support. They need to understand the important job network plays in achieving periodic goals.
- Content : It is important that the substance benefits your group. This guarantees a quality encounter and returns to customers. Measure client fulfillment and restore content as needed by quoting email reviews for network personalities, screen watchwords and top queries.
- Engagement : Your group of people is a different standard of commitment. In this manner, it is important to create a domain that asks people to learn, answer, answer questions, connect with others, and tune in. Maintains commitment and supports continuous cooperation with gasification.
- Visibility : Think about your locale as another topic discusses something and entices your audience to show what excitement is. Chances are, no one will find your local. Fraud can be effective. Show the network interface on your site, blog and online life channels. Include connections in the footer of all company email correspondence. Use email alarms to tell people when a new lecture has begun. Or, on the other hand, send email bulletins that contain network activity.
- Moderation: Successful control involves your local people with significant commitments, wholehearted commitment and proper customer behavior. Greater control comes from organizing requests and building harmony between engaging your audience and engaging in conversation.