In a bubble sort, you use an inner loop to make pair comparisons.
I have recently found this answer https://assignment.essayshark.com/blog/sql-simple-examples-database/. Then provided me with a ready assignment in a very short period of time.
Answer:
Press the Windows key on your keyboard. In the box that appears, type Ease of Access mouse settings and press Enter . In the Mouse Keys section, toggle the switch under Use numeric pad to move mouse around the screen to On. Press Alt + F4 to exit this menu.
Answer:
Following are the code to this question can be described as follows:
c= input('Input triangle_char: ') #defining variable c that input character value
length = int(input('Enter triangle_height: ')) # Enter total height of triangle
for i in range(length): # loop for column values
for j in range(i+1): #loop to print row values
print(c,end=' ') #print value
print()# for new line
Output:
please find the attachment.
Explanation:
In the above python code, two variable "c and length" variables are declared, in variable c is used to input char variable value, in the next line, length variable is defined, that accepts total height from the user.
- In the next line, two for loop is declared, it uses as nested looping, in which the outer loop prints column values and inner the loop is used to prints rows.
- To prints all the value the print method is used, which prints the user input character triangle.