practical bioinformatics
play

Practical Bioinformatics Mark Voorhies 5/21/2013 Mark Voorhies - PowerPoint PPT Presentation

Practical Bioinformatics Mark Voorhies 5/21/2013 Mark Voorhies Practical Bioinformatics Gotchas Enclosing symbols (,,(),[],...) need to be matched Mark Voorhies Practical Bioinformatics Gotchas Enclosing symbols


  1. Practical Bioinformatics Mark Voorhies 5/21/2013 Mark Voorhies Practical Bioinformatics

  2. Gotchas Enclosing symbols (””,”,(),[],...) need to be matched Mark Voorhies Practical Bioinformatics

  3. Gotchas Enclosing symbols (””,”,(),[],...) need to be matched Pay attention to IPython’s syntax highlighting to match your quotes. Mark Voorhies Practical Bioinformatics

  4. Gotchas Enclosing symbols (””,”,(),[],...) need to be matched Pay attention to IPython’s syntax highlighting to match your quotes. IPython highlights parens for the current cursor position in green Mark Voorhies Practical Bioinformatics

  5. Gotchas Statements that precede code blocks (if, def, for, while, ...) end with a colon. def mean( x ) : s = 0.0 for i in x : s += i return s / l e n ( x ) Mark Voorhies Practical Bioinformatics

  6. Gotchas Statements that precede code blocks (if, def, for, while, ...) end with a colon. def mean( x ) : s = 0.0 for i in x : s += i return s / l e n ( x ) Loop variables retain their state after the loop is finished (so if you want to reuse the variable, you need to reinitialize it). Mark Voorhies Practical Bioinformatics

  7. Mean def mean( x ) : s = 0.0 i in x : for s += i s / l e n ( x ) return def mean( x ) : return sum( x )/ f l o a t ( l e n ( x )) Mark Voorhies Practical Bioinformatics

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend