How to declare a global variable used for input in Python
问题 Hello I am new user to Python - Could somebody help me understand why i cant seem to declare this global variable col_number. I want to try and use the col_number to pass it to the plotting function. Ive tried declaring it as a global variable but I am just guessing now - not really sure how to fix this. Thanks from matplotlib import style from matplotlib import pyplot as plt import numpy as np import csv # import random used for changing line colors in chart import random from itertools