Say I have a code given in a string for example: str(00012333210-1)
The numbers relate to a certain amplitude on a wave I wish to graph.
I want to transform the code into a printable wave where the numbers are replaced by asterisks such as:
3: ***
2: * *
1: * *
0:*** *
-1: *
-2:
-3:
Any useful tools to go about doing this?
So far I have tried to split the string into individual numbers however am struggling with the negatives.
For example:
file = "000123332101233321000"
x = [int(i) for i in file]
print(x)
I only have a very basic understanding of python so i'm very stuck at the moment.