Skip to content

Instantly share code, notes, and snippets.

@Control-editorial
Created June 12, 2024 16:00
Show Gist options
  • Save Control-editorial/b4dc5ea368b16ae6dee72ad298d71826 to your computer and use it in GitHub Desktop.
Save Control-editorial/b4dc5ea368b16ae6dee72ad298d71826 to your computer and use it in GitHub Desktop.
# using the .tuple class constructor
pid_controller = {
"Kp": 1.4,
"Ki": 0.02,
"Kd": 0.1
}
print(tuple(pid_controller.items()))
-----------
(('Kp', 1.4), ('Ki', 0.02), ('Kd', 0.1))
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment