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, 22.06.2019 10:20
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
What key should you press and hold to select and open multiple files at one time? enter alt control esc
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
From excel to powerpoint, you can copy and paste a. cell ranges and charts, one at a time. b. cell ranges and charts, simultaneously. c. charts only. d. cell ranges only.
Answers: 3
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
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
Mathematics, 22.05.2020 05:01
Questions on the website: 13722367