Short Recap – Creating a Program

  • An arbitrary editor (nano, idle3, gedit, vim, ...) can be used to create the program code and save it as a file
  • Login:
    $ ssh -Y <username>@rackham.uppmax.uu.se
  • Open editor, e.g., vi:
    $ vi product.py
  • Load module:
    $ module load python/3.9.5
  • Then you can run your program in the terminal window:
    $ python3 product.py
  • Note: We count from 0!
A = "ACGTCGA"
print(len(A))
for i in range(len(A)):
print(i, A[i])