How do I allow decimals to be plotted without being ‘flagged’ by my format check?
Im trying to make a python script that will allow me to insert a string of coordinates and have them plotted on a graph/plane, I have it set so if you use an incorrect format eg: (x,y), (x,y ,(x,y) that it will say incorrect format becaue of the missing parenthisis however, whenever I try to get it to allow decimal points it either keeps flagging everything or just doesnt connect them via lines. I have it so it will connect the points via lines in the order they were listed if a comma is used to seperate the different coordinates eg: (x,y), (x,y) however if a period is used in between points it won’t connect a line between those specific points eg: (x,y). (x,y) this allows me to make things that look like a completed connect the dots, however that breaks a lot of the time when trying to allow decimal points as it gets confused between whats a decimal point and whats a line seperator. I know that decimals need to be declaired as a ‘float’ unlike whole numbers, and my code doesnt do that and ive yet to figure out how to do so. Does anyone know how I can get my code to allow decimals whilst not breaking the other stuff? The code I have so far has working lines, and line seperation via the periods, however it doesnt accept decimal numbers: