Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

it says that you have to output a code that is last name then first name using input. how do you do that?
Alice is throwing a party with n other guests, nclud ing Bob. Bob starts a rumor about Alice by telling it to one of the other guests. A person hearing this rumor for the first time will immediately tell it to one other guest, chosen u formly at random from all the people at the party except Alice and the person from whom they heard t. If a person including Bob) hears the rumor for the second time, he or she will not propagate it further. Write a program to estimate the probability that everyone at the party (except Alice w hear the rumor before it stops propagating. Also calculate an estimate of the expected number of people to hear the rumor
write a program that asks the user to enter two words, change them to upper case, then prints them in alphabetical order
Assignment 6: Code Snippet
Use the code snippet provided below as the basis for your work on each question in Assignment 6. Note that you may need more than two for loops for shapes in some of the questions.

for i in range(3):
for j in range(3-i):
print("*", end=" ")
print("")
Question 2 Instructions
Use the code snippet above to write a program that uses looping to output the following shape:

SECOND
* * * * * * * * * *
* * * * * * * * * *
* * * * * * * * * *
* * * * * * * * * *
* * * * * * * * * *
* * * * * * * * * *
* * * * * * * * * *
* * * * * * * * * *
* * * * * * * * * *
* * * * * * * * * *
Use the code snippet provided below as the basis for your work on each question in Assignment 6. Note that you may need more than two for loops for shapes in some of the questions.

for i in range(3):
for j in range(3-i):
print("*", end=" ")
print("")
Question 3 Instructions
Use the code snippet above to write a program that uses looping to output the following shape:

THIRD
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *
* * * * * * * * *
Use the code snippet provided below as the basis for your work on each question in Assignment 6. Note that you may need more than two for loops for shapes in some of the questions.

for i in range(3):
for j in range(3-i):
print("*", end=" ")
print("")
Question 4 Instructions
Use the code snippet above to write a program that uses looping to output the following shape:


FOURTH
* * * * * * * * * *
* * * * * * * * *
* * * * * * * *
* * * * * * *
* * * * * *
* * * * *
* * * *
* * *
* *
*
Write code using the range function to add up the series 99, 98, 97, ... 1 and print the resulting sum. Expected output: 4950
Write code using the range function to add up the series 20, 30, 40, ... 90 and print the resulting sum. Expected output: 440
Write a function named ilovepython that prints out I love Python three times. Then, call that function. sum.
Write a function named print_sum that accepts three numbers as parameters and prints the sum.
LATEST TUTORIALS
APPROVED BY CLIENTS