Learn practical skills, build real-world projects, and advance your career
Song = "440"
if Song == "DNA" or Song == "Humble":
    print("The song is from the album DAMN")
else:
    print("The song sucks")
The song sucks
DAMN = ["DNA", "Humble", "Loyalty"]
Song = "I"
if Song in DAMN:
    print("{} belongs to the album DAMN".format(Song))
else:
    print("{} does not belong to the album DAMN".format(Song))

I does not belong to the album DAMN
DAMN = ["DNA", "Humble", "Loyalty"]
Song = "Humble"
if Song in DAMN:
    print("{} belongs to the album DAMN".format(Song))
else:
    print("{} does not belong to the album DAMN".format(Song))

Humble belongs to the album DAMN
star = "*"
result = "*"
while len(result)<=10:
    print(result)
    result = result+"*"
while len(result)>=1:
    print(result)
    result = result[:-1]
   

* ** *** **** ***** ****** ******* ******** ********* ********** *********** ********** ********* ******** ******* ****** ***** **** *** ** *
i=4
mul=i-1
while i>=1:
    mul = mul*i
    i = i - 1
    print(result)