Posts

Showing posts from December 7, 2018

Find domain of the function $y=frac{1}{sqrt{5+2lfloor -3xrfloor}}$

Image
up vote -1 down vote favorite I'm a starter in learning functions. Would you help me with this? $$y=frac{1}{sqrt{5+2lfloor -3xrfloor}}$$ Tell me what inequalities i must solve? calculus functions share | cite | improve this question edited Nov 25 at 20:21 lulu 38.4k 2 44 76 asked Nov 25 at 20:19 user602338 132 6 4 ...

List comprehension of tuple gets me a generator - why and how to modify?

Image
up vote 2 down vote favorite I am going through the exercises of this site https://anandology.com/python-practice-book/working-with-data.html when I tried to recreate the zip function through list comprehension. Now I created this function. But instead of getting a list I get a generator :-( def zipp (liste1,liste2): length= len(liste1) zipped= [zipped.append(tuple(liste1[i], liste2[i]) for i in range(length))] return zipped I searched a little in here and found this: Python: why does list comprehension produce a generator? Accordingly I used the "tuple" statement already but to no awail. I have no idea why I get a generator even with the tuple() inserted. So my questions: why? What do I need to change or where can I read/hear more to get "enlightened" myself? How could I use ...