How do I use WordNet in Python?

How can I use shell scripting to iterate an argument that I can use in a Python function like DoublePendulum2.py?

  • Basically I want shell scripting to run something like this: time python DoublePendulum.py 1 1 1 time python DoublePendulum.py 1 2 1 time python DoublePendulum.py 1 4 1 time python DoublePendulum.py 1 8 1 time python DoublePendulum.py 1 16 1 (the program produces specially named png files as output)

  • Answer:

    Here's a script that'll work for you. It loops through the numbers in a list and multiplies the argument by two for each iteration. #!/bin/bash NUM=1 for i in {1..5}; do time python DoublePendulum.py 1 $NUM 1 NUM=$[NUM*2] done;

Dan Loewenherz at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.