Computers and Technology, 11.10.2021 02:10 StupidFatChipmunk
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}")
Answers: 1
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
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
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
Guys, so I made this triangle using python, and now I want to make another triangle but this time it...
English, 18.12.2020 19:50
Computers and Technology, 18.12.2020 19:50
Chemistry, 18.12.2020 19:50
Mathematics, 18.12.2020 19:50
History, 18.12.2020 19:50
World Languages, 18.12.2020 19:50
Biology, 18.12.2020 19:50
Mathematics, 18.12.2020 19:50
Mathematics, 18.12.2020 19:50
Mathematics, 18.12.2020 19:50
Advanced Placement (AP), 18.12.2020 19:50