radomes.openskiesproject.org
litymelmarlyni litymelmarlyni
  • 21-02-2017
  • Computers and Technology
Answered

Python 3.4

given a variable n that is associated with a positive integer and a variable s that is associated with the empty string, write some statements that use a while loop to associate s with a string consisting of exactly 2n asterisks ( . (so if n were associated with 4 then s would, in the end, be associated with "*******" .

Verified Answer :

rsmith6559
rsmith6559 rsmith6559
  • 28-02-2017

i = 0
while( i < ( n 2 ) ):
   s += '
'
   i += 1

Answer Link

Related Questions

What is a point value for an arrow that is on two different colors
Whats the gradient of y 5x 2 and how do I find it
Zack has a car He wants to sell it for 60 off the current pricethe market price is 500 How much money would he receive in exchange for the car if he were able t
I need help ASAP only answer if you can explain your answer
what is a stoa A greek civic Building A greek religious Building A Roman private building a roman public building
Count by 5 135 to 175 describe the pattern
So If I said that 23 of 2416 Then What should I color in
Allen and Rose are discussing saprotrophs Allen says saprotrophic fungi decompose the remains of animals and plants Rose says saprotrophic fungi remove excess l
Conquistadors wanted to obtain glory and riches for
do all 6 digit numbers have 6 addends in their expanded form