fromitertoolsimportcycleimporttimelist=['This is the song that never ends','It just goes on and on my friends','Some people started singing it, not knowing what it was','And they\'ll continue singing it forever just because...']forlineincycle(list):print(line)time.sleep(.25)
importrequestsdefget_users():whileTrue:yieldrequests.get('https://randomuser.me/api/').json()['results'][0]foruseringet_users():print('{0[name][first]} {0[name][last]} - born {0[dob]}'.format(user))
python
never-ending song
non-stop random numbers
lots of random user information
The "never-ending song" is classic. 😂