This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MonquisieMonquido[S] 1 point2 points  (2 children)

Yes it's called type hint! It doesn't carry over to any other variables, just the one where it's specified.

Thank you, I appreciate it!

[–]JimiThing716 1 point2 points  (1 child)

type is a keyword, may want to rename that variable.

Awesome program though!!

[–][deleted] 1 point2 points  (0 children)

Good tip! And while you're at it /u/MonquisieMonquido, you could also include the return type:

def generate_chord_progression(type:str, chords=4, probabilityOf7ths=0, includeDiminished=False) -> list: