Remove spaces from the stars I did this code: for i in range(10, 0, -1): for j
Fantastic news! We've Found the answer you've been seeking!
Question:
Remove spaces from the stars
Transcribed Image Text:
I did this code: for i in range(10, 0, -1): for j in range(0, 10-i): print(end="") for j in range(0, i): print("*",end="") print () However, I don't need spaces between the stars. How can I fix this? I need it to look like the picture which I am attaching. I will really appreciate all of your help! Thank you. * I did this code: for i in range(10, 0, -1): for j in range(0, 10-i): print(end="") for j in range(0, i): print("*",end="") print () However, I don't need spaces between the stars. How can I fix this? I need it to look like the picture which I am attaching. I will really appreciate all of your help! Thank you. *
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Denver Company had a fiscal year - end December 3 1 , 2 0 X 8 retained earnings account balance in its statement of financial position of $ 2 6 0 , 0 0 0 . During 2 0 X 8 , Denver Company had net...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Examine the difficulty of adding a proposed lwi.drd, rsl, rs2 (Load With Increment) instruction to MIPS. Interpretation: Reg[rd] = Mem[Reg[rs1] + Reg[rs2]] 1. Which new functional blocks (if any) do...
-
A 50-N force directed vertically downward is applied to the toggle vise at C. Knowing that link BD is 150 mm long and that a = 100 mm, determine the horizontal force exerted on block E. 50 N 150 mm 15
-
The MyLinkedList class used in Listing 24.5 is a one-way directional linked list that enables one-way traversal of the list. Modify the Node class to add the new data field name previous to refer to...
-
For fluids with \(\operatorname{Pr} <1\) the velocity profile is assumed to be a cubic for \(y
-
Canwest Global Communications Corp. reported cash used by operating activities of $104,539,000 and revenues of $2,867,459,000 during 2009. Cash spent on plant asset additions during the year was...
-
8.4 Static Equilibrium -3L/4- L/4- F -Axis of rotation y mg F2 56. Calculate If the two parents in Figure 8.19 exert upward forces of 18 N on the left end of the plank and 71 N on the right end, how...
-
David R. and Ella M. Cole (ages 39 and 38, respectively) are husband and wife who live at 1820 Elk Avenue, Denver, CO 80202. David is a self-employed consultant, specializing in retail management and...
-
The last account listed on the post-closing trial balance for a corporation is the Capital account Withdrawals account Retained Earnings account Common Stock account
-
What companies do Coca-Cola describe as significant equity method investments? How do these investments help Coca-Cola? What criteria does Coca-Cola use in choosing to apply the equity method for...
-
Your father loans you 12,000 and his repayment schedule requires 1,317.54 at the end of the year for the next 15 years , what interest rate is he charging?
-
what is the monthly payment for a car purchased at $24,500 when terms are 4 years loan , 3.99% interest rate? No money down payment. 2.) given the following information calculate the expected return...
-
Explain how you will incorporate into your planning process The Health Belief Model (HBM)
-
Describe how businesses can guard against becoming participants in money laundering schemes. Include a discussion of at least five red flags that might be seen in a possible money laundering scheme.
-
Georgeland Cycles makes and sells two models of electric bicycles. The Commuter (a folding model) sells for $2,507.00 and the Tour-X (a fat-tire trail model) sells for $4,507.00. Unit variable costs...
-
Why did management adopt the new plan even though it provides a smaller expected number of exposures than the original plan recommended by the original linear programming model?
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-7. Ivan sold the following securities during the year and received a Form 1099-B that...
-
On September 14, 2012, Jay purchased a passenger automobile that is used 75 percent in his accounting business. The automobile has a basis for depreciation purposes of $35,000, and Jay uses the...
-
Mike sells his home to Jane on April 2, 2012. Jane pays the property taxes covering the full calendar year in October, which amount to $2,500. How much may Mike and Jane each deduct for property...
-
Find the Laplace transform of the following signals and locate the poles and zeros of \(F(s)\). (a) \(f(t)=-8 u(t)\). (b) \(f(t)=0.5 t u(t)\). (c) \(f(t)=10 e^{-20000 t} u(t)\).
-
Find the Laplace transform of \(f(t)=-5 u(t)+5 e^{-5 t}\) \(u(t)-5 t u(t)\). Locate the poles and zeros of \(F(s)\).
-
Find the Laplace transform of \(f(t)=\delta^{\prime}(t)+\delta(t)-e^{-t} u\) \((t)\). Locate the poles and zeros of \(F(s)\).
Study smarter with the SolutionInn App