Skip to content

Instantly share code, notes, and snippets.

@AstraLuma
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save AstraLuma/928f32d3799ccc9eb6c7 to your computer and use it in GitHub Desktop.

Select an option

Save AstraLuma/928f32d3799ccc9eb6c7 to your computer and use it in GitHub Desktop.
Antimony: Parameters
# ANEX-SPEC: 1
# ANEX-ID: astronouth7303@gmail.com/parameters
# ANEX-VERSION: 1.0
# ANEX-AUTHOR: Jamie Bliss <astronouth7303@gmail.com>
# ANEX-CATEGORY: Utility
# ANEX-TAGS: parameters, constants, numbers
# ANEX-DESC: A simple parameters node, from a to z
"""
Simple parameters, from `a` to `z`.
Give it `num` the number of parameters you want, and it will give you floats lettered
from `a` to `z`.
"""
from string import ascii_lowercase
title('Params')
input('num', int)
for n in range(num):
input(ascii_lowercase[n], float)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment