Answer the question
In order to leave comments, you need to log in
How to import the value of a variable from a file?
tell me how i can pass value from txt file to variable
Answer the question
In order to leave comments, you need to log in
import numpy as np
x = np.loadtxt(file_name, unpack = True)
import numpy as np
x, y = np.loadtxt(file_name, unpack = True, delimiter = " ")
import numpy as np
x, y = np.loadtxt(file_name, unpack = True, delimiter = " ")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question