This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__ == '__main__': | |
#fibonnacci sequence in a lazy list. | |
@lazylist | |
def fibgen(lst): | |
yield 0 | |
yield 1 | |
for a, b in itertools.izip(lst, lst[1:]): | |
yield a + b | |
fibs = fibgen() #now fibs can be indexed or iterated over as if it were |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Herbert has joined this session! | |
Connected with Herbert. Your reference number for this chat session is 2110638. | |
Herbert: Welcome to Microsoft Customer Service Chat, Tom. Please give me a moment while I review your question. | |
Herbert: Please be informed that this chat service is available to guide you to the appropriate resources for your questions. Often this can include technical support options or a phone number to the appropriate Microsoft team. |
NewerOlder