171x Filetype PDF File size 0.25 MB Source: cbdm.uni-mainz.de
Introduction to Python for Biologists IF-FOR-WHILERevisited ˇ 1 1,2 Katerina Taskova Jean-Fred Fontaine 1 ¨ Faculty of Biology, Johannes Gutenberg-Universitat Mainz, Mainz, Germany 2Genomics and Computational Biology, Kernel Press, Mainz, Germany https://cbdm.uni-mainz.de/mb17 March 24, 2017 Introduction to Python for Biologists – Table of Contents IF revisited FORrevisited WHILErevisited **Exercise** References ¨ ˇ March 24, 2017 Johannes Gutenberg-Universitat Mainz Taskova & Fontaine 2 Introduction to Python for Biologists – IF revisited IF revisited FORrevisited WHILErevisited **Exercise** References ¨ ˇ March 24, 2017 Johannes Gutenberg-Universitat Mainz Taskova & Fontaine 3 Introduction to Python for Biologists – IF revisited IF I 1 phonebook={’Mara’: 491761132347, 2 ’ Daniel ’ : 491761262348, 3 ’ Stefan ’ : None, 4 ’ Kate ’ : 491734263358, 5 ’ Ana ’ : None, 6 ’ Joerg ’ : 4917756708022, 7 ’ Marc ’ : 4917822451089} 8 9 name = ’Kate ’ 10 if name in phonebook.keys() : 11 print (name, phonebook[name] , sep =” : ”) 12 else: 13 print ( ”No entry named” , name) ¨ ˇ March 24, 2017 Johannes Gutenberg-Universitat Mainz Taskova & Fontaine 4
no reviews yet
Please Login to review.