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, 21.06.2019 15:30
Which function in spreadsheet software can be used to predict future sales or inventory needs?
Answers: 2
Computers and Technology, 22.06.2019 22:20
Pp 4.1 design and implement a class called sphere that contains instance data that represents the sphere’s diameter. define the sphere constructor to accept and initialize the diameter and include getter and setter methods for the diameter. include methods that calculate and return the volume and surface area of the sphere (see pp 3.5 for the formulas). include a tostring method that returns a one-line description of the sphere. create a driver class called multisphere, whose main method instantiates and updates several sphere objects.
Answers: 1
Computers and Technology, 23.06.2019 13:30
Stops: using the information learned in this course, explain three things you will not do when driving. a. b. c. explain why you will not do these things when driving. starts: using the information learned in this course, explain three things you will do when driving. a. b. c. explain why you will do these particular things when driving. explain one thing you will stop doing as a passenger. explain one thing you will start doing as a passenger.
Answers: 3
Computers and Technology, 23.06.2019 15:30
Hey so i was just trying out some game hacks so i took a paste from online and built it in my visual studio and then suddenly my computer was working or clicking on stuff on its own am i hacked?
Answers: 1
Guys, so I made this triangle using python, and now I want to make another triangle but this time it...
Mathematics, 20.07.2021 20:40
Mathematics, 20.07.2021 20:40
Mathematics, 20.07.2021 20:40
English, 20.07.2021 20:40
Health, 20.07.2021 20:40
English, 20.07.2021 20:40
History, 20.07.2021 20:40
Mathematics, 20.07.2021 20:40