Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

right angle triangle in python

for i in range(0,x+1):
    print(" "*(x-i),end="")
    for j in range(0+i):
        print("#",end="")
    print()
    
    
   #
  ##
 ###
####
Comment

area of a right angle triangle in python

h = int(input("Enter the height of the triangle"))
b = int(input("Enter the base of the triangle"))
A = 0.5 * b * h
print("Area is: ", (A))
Comment

PREVIOUS NEXT
Code Example
Python :: display video in jupyter notebook 
Python :: remove all rows without a value pandas 
Python :: remove alphabetic characters python 
Python :: discord py color 
Python :: colab add package 
Python :: python copy dataframe 
Python :: concat dataframe from list of dataframe 
Python :: Converting utc time string to datetime object python 
Python :: python typed list 
Python :: pandas create new column and fill with constant value 
Python :: sort the dictionary in python 
Python :: change working directory python 
Python :: return max repeated value in list 
Python :: how to set up a postgress database for your django projecrt 
Python :: generic type python 
Python :: python horizontal line 
Python :: make sure text is on page selenium python 
Python :: connect with pyodbc with statement 
Python :: flask get ip of user 
Python :: pytest run only failed test 
Python :: python check folder 
Python :: pynput.keyboard.Key 
Python :: selenium chromeoptions user agent 
Python :: remove rows from pandas dataframe that have text 
Python :: set pixel pygame 
Python :: random.shuffle 
Python :: rename key in python dictionary 
Python :: difference between 2 timestamps pandas 
Python :: html to docx python 
Python :: how to check python version on terminal 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =