''' Write a python script to open a ROOT file ''' import uproot # Open a ROOT file file = uproot.open("path/to/your/root/file.root") # Print the contents of the file print(file.keys())