See also
Iris Glasses
References
External links
RTCD (research and technology center for computer display)
Category:Display technology
Category:Optical devicesQ:
How do I delete the index of a number in a list of lists?
I'm trying to do a variation on the TV Pop quiz. Basically, I have a random list of quiz answers. The user chooses the correct answer, and I want to remove the index of the number from the random list.
A:
you can use the del-keyword:
list1 = ['index1','index2','index3']
del list1[int(input())]
would delete the position at which the index is found in the list.
but the index you are searching for must be unique!
so if you randomly assign a value (so it is unique):
list1 = []
list1.append(['test','test'])
you have to sort the values first (or use random):
list1.sort()
so your example would become:
list1 = ['test','test']
and your result would be:
test
i think i covered all the key-points.. so it should work now...
Pages
Thursday, May 27, 2016
Boulder — Beer lovers can now hit the streets in a new and unusual way – to the brewery.
National Burgers and Beer Tour (NBBT) announced that it will offer guided brewery tours at 11 breweries in May and June.
NBBT, the nation’s premier beer and burger tourism event, welcomes more than 60,000 people each year to its breweries. The tours provide an opportunity for those who love beer and burgers to connect with the people who make the food and beer they enjoy every day, according to the event.
“It is a beer lover’s dream to visit a brewery,” said Justin Lewis, one of NBBT’s co-founders. “However, due to the demand and limited space, tours are limited. The beer and burger fanatics in this country are hungry for more than just the bottled version of their favorite beverage.”
Founded in 2014, N
Related links:
Commentaires