We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New example for scope using a for loop
#!/usr/bin/env python3 import sys gene = sys.argv[1] ## user input was brca1 genes = { 'hdac' : 'aaaaa' , 'piwi' : 'ttttt' } print("Users favorite gene: " , gene) for gene in genes: gene_length = len( genes[gene] ) print(gene, gene_length) print("Users favorite gene: " , gene)
Output
(py3.7) mp181vbhv2j:scripts smr$ python3 scope_for_loops.py brca1 Users favorite gene: brca1 hdac 5 piwi 5 Users favorite gene: piwi
The text was updated successfully, but these errors were encountered:
No branches or pull requests
New example for scope using a for loop
Output
The text was updated successfully, but these errors were encountered: