how to save python variables locally

Solutions on MaxInterview for how to save python variables locally by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "how to save python variables locally"
Diane
23 Jan 2017
1with open('train.pickle', 'wb') as f:
2    pickle.dump([X_train, y_train], f)
3