Generate a Python program to read an integer from the user and display a right-angled triangle with the given integer as the base.
Not applicable
num = int(input("Enter a number: "))
 
for i in range(1, num + 1):
  for j in range(1, i + 1):
      print("*", end=" ")
  print("\r")