import time news = [u'GAZA/JERUSALEM (Reuters) - Israel pounded targets across the Gaza Strip on Tuesday, saying no ceasefire was near as top U.S. and United Nations diplomats pursued talks on halting the fighting that has claimed more than 600 lives.', u"WASHINGTON (Reuters) - Two U.S. judicial panels on Tuesday injected new uncertainty into the future of President Barack Obama's healthcare law, with conflicting rulings over whether the federal government can subsidize health insurance for millions of Americans.", u'DONETSK Ukraine (Reuters) - A train carrying the remains of many of the 298 victims of Malaysia Airlines flight MH17 arrived in a Ukrainian government-held city on Tuesday on the first leg of their final journey home to be reclaimed by their families.', u'BRUSSELS (Reuters) - The European Union threatened Russia on Tuesday with harsher sanctions over Ukraine that could inflict wider damage on its economy following the downing of a Malaysian airliner, but it delayed action for a few days.', u"(Reuters) - A federal judge rejected Google Inc's bid to dismiss a privacy lawsuit claiming it commingled user data across different products and disclosed that data to advertisers without permission.", u'JAKARTA (Reuters) - Joko "Jokowi" Widodo was declared the winner of Indonesia\'s presidential election on Tuesday, bringing the promise of major reforms to the world\'s third largest democracy.', u'WASHINGTON (Reuters) - U.S. home resales hit an eight month-high in June, suggesting the housing market was gradually regaining momentum and would help the economy to stay on a higher growth path this year.', u"SHANGHAI (Reuters) - The latest food scandal in China is spreading fast, dragging in U.S. coffee chain Starbucks, Burger King Worldwide Inc and others, as well as McDonald's products as far away as Japan.", u'(Reuters) - Verizon Communications Inc, the largest U.S. wireless telecommunications company, on Tuesday reported better-than-expected quarterly revenue on a jump in wireless customers and a surge in tablet sales.', u"(Reuters) - Detroit's city workers and retirees overwhelmingly agreed to accept the city's debt adjustment plan, according to results filed late Monday, potentially clearing the way for the struggling city to exit bankruptcy in the next few months.", u'ZURICH (Reuters) - Credit Suisse Group AG will quit commodities trading after chalking up its biggest loss since the financial crisis in 2008, the result of a 1.6 billion Swiss franc ($1.78 billion) fine from U.S. authorities for helping its clients evade taxes.', u'LONDON/MUMBAI (Reuters) - Indian generics firm Lupin , some U.S. drugmakers looking for a tax-saving deal in Europe and private equity funds are planning to bid for a range of older drugs being auctioned by GlaxoSmithKline (GSK) , five sources familiar with the matter said.', u'WASHINGTON (Reuters) - U.S. consumer prices rose in June as the cost of gasoline surged, but the underlying trend remained consistent with a gradual build-up of inflationary pressures.', u'JAKARTA (Reuters) - Jakarta Governor Joko "Jokowi" Widodo will be Indonesia\'s next leader after winning the country\'s closest ever presidential election, the chairwoman of Jokowi\'s party said on Tuesday.', u"MILWAUKEE (Reuters) - A federal judge has thrown out a U.S. Senator's legal challenge to a part of President Barack Obama's healthcare law that grants health insurance subsidies for members of Congress and their staffs.", u'LONDON (Reuters) - Britain said on Tuesday it will hold a public inquiry into the death of former KGB spy Alexander Litvinenko, who accused Russian President Vladimir Putin of ordering his murder from his deathbed after he was poisoned in London in 2006.', u'BAGHDAD (Reuters) - Using its own version of "soft" and "hard" power, the Islamic State is crushing resistance across northern Iraq so successfully that its promise to march on Baghdad may no longer be unrealistic bravado.', u"WASHINGTON (Reuters) - A deluge of Central American children pouring into the United States threatens to burst the seams of already overstuffed immigration courts, and President Barack Obama's steps to ease the crisis are likely to make matters worse rather than better for some, U.S. officials and immigration lawyers said.", u"(Reuters) - Rupert Murdoch's plan to buy Time Warner would help the Twenty-First Century Fox chairman make larger inroads in China, a fast-growing market that media moguls are finding hard to crack.", u"SHANGHAI/LOS ANGELES (Reuters) - Yum Brands Inc and McDonald's Corp are facing a new food safety scare in China, denting the fast-food companies' efforts to shore up reputations and businesses that were hurt by a 2012 safety scandal in one of their biggest markets.", u"DONETSK Ukraine (Reuters) - The remains of some of the nearly 300 victims of the Malaysia Airlines plane downed over Ukraine were making their way to the Netherlands on Tuesday as a senior Ukrainian separatist leader handed over the plane's black boxes to Malaysian experts.", u'GAZA/JERUSALEM (Reuters) - The United States, alarmed by escalating civilian bloodshed in an Israeli offensive in the Gaza Strip, took a direct role in efforts to secure a ceasefire on Monday, as the Palestinian death toll jumped to more than 500.', u"SHANGHAI/LOS ANGELES (Reuters) - Yum Brands Inc and McDonald's Corp are facing a new food safety scare in China, denting the fast-food companies' efforts to shore up reputations and businesses that were hurt by a 2012 safety scandal in one of their biggest markets.", u'BENGHAZI Libya (Reuters) - Islamist militants attacked an army base in the eastern Libyan city of Benghazi on Monday, triggering fierce clashes involving helicopters and jets that killed at least seven people and wounded 40 others after days of escalating violence.', u'BAGHDAD (Reuters) - Ten people were killed, including a mother and three children, in a government air strike on a militant-controlled town north of Baghdad on Monday, hospital sources and witnesses said.'] print "Good Morning! :)" time.sleep(1) print "\n" print "Here's your news for today: " time.sleep(2) print " " time.sleep(2) i = 1 for entry in news: time.sleep(1) print "\n\n%i: " %(i), entry i += 1
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question