Python For Scientific Research: Flow Control
Python For Scientific Research: Flow Control
Flow control
Bram Kuijper
Note:
1 Use for loops over while loops where possible
2 Ensure that the while condition evaluates to False at some
point to avoid an infinite loop
2 Using enumerate:
1 for i , gene in enumerate ( geneNames ) :
2 print ( f " Gene { i +1} is { gene . upper () } " )