subject

Guys, so I made this triangle using python, and now I want to make another triangle but this time its upside down, so basically in the code down below, my code prints out ##*##
#***#

but I want it to print this way

#***#
##*##
How can I do it?? Python pros pls helpp

k = 7
def triangle(k):
a = (2*k) -1
k = 3
for x in range(0,a+1):
if x % 2 != 0:
f = int((a - x)/2)
print(f"{'#'*f}{'*'*x}{'#'*f}")

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
question
Computers and Technology, 24.06.2019 20:50
Which key function of a business involves finding, targeting, attracting, and connecting with the right customers?
Answers: 3
question
Computers and Technology, 24.06.2019 23:30
True or false when a host gets an ip address from a dhcp server it is said to be configured manually
Answers: 1
You know the right answer?
Guys, so I made this triangle using python, and now I want to make another triangle but this time it...
Questions
question
Computers and Technology, 18.12.2020 19:50
question
Mathematics, 18.12.2020 19:50
question
World Languages, 18.12.2020 19:50
question
Biology, 18.12.2020 19:50
question
Mathematics, 18.12.2020 19:50
question
Mathematics, 18.12.2020 19:50
Questions on the website: 13722360