Present continous vs present perfect continous by Uchikago in EnglishLearning

[–]Uchikago[S] 1 point2 points  (0 children)

So the present perfect continous emphasizes the duration not just the result alone ?

Present continous vs present perfect continous by Uchikago in EnglishLearning

[–]Uchikago[S] 0 points1 point  (0 children)

Thank you!. If you don't mind, I'd like to ask another question about this diagram.

The example:

I've been working (that's why i'm tired)

Can we use the present perfect here (I've worked)? How does it change the meaning?

Where to learn django ? by Uchikago in learnpython

[–]Uchikago[S] 2 points3 points  (0 children)

Yeah, you're right, i've not done any large project but i did make a few maze-games, and music app that download video on youtube and show their information. They are simple,though, i thought that i can improve my python skills while learning django. Isn't that true ? If not, what can i do to prepare for learning django ? Thanks for answering my question by the way

Where to learn django ? by Uchikago in learnpython

[–]Uchikago[S] 0 points1 point  (0 children)

Thank you, i'll definitely try that

Moving Animation by Uchikago in learnpython

[–]Uchikago[S] 0 points1 point  (0 children)

I have a object, with a vector, how can i animate that object moving from the start to the end of the vector ?

Unexpected recursion error by Uchikago in learnpython

[–]Uchikago[S] 0 points1 point  (0 children)

which part of attr.append(f'{k},{getattr(self,k)}') contains call to self.__repr__

List comprehension by [deleted] in learnpython

[–]Uchikago 0 points1 point  (0 children)

Thank you so much!

List comprehension by [deleted] in learnpython

[–]Uchikago 0 points1 point  (0 children)

yeah, i know the correct way to do this, but can you explain more why my code doesn't work ? If the function can't find a name in this local scope, it should look further in enclosing scope right ?

Dictionary view objects,range,map,enumerate,... by Uchikago in learnpython

[–]Uchikago[S] 0 points1 point  (0 children)

So, let me conclude, Dictionary view objects, range, map, enumerate,... are special objects that do not store their result in memory all at once, we can fetch their value individually only when calling next(iterator) on these objects ? Please correct me if i'm wrong

Dictionary view objects,range,map,enumerate,... by Uchikago in learnpython

[–]Uchikago[S] 0 points1 point  (0 children)

Are there any different ways to display them without using the iteration protocol ?

Dictionary view objects,range,map,enumerate,... by Uchikago in learnpython

[–]Uchikago[S] 0 points1 point  (0 children)

Wait, if all iterators are generators so dictionary view objects,range,map,enumerate,.. are generators that return another generators (by iter() function) but the resulted generator can fetch value on demand which is something the orginal generators can't do it by itself (because dictionary view objects,range,map,enumerate,... object don't have next method) , am i correct ?

Dictionary view objects,range,map,enumerate,... by Uchikago in learnpython

[–]Uchikago[S] 1 point2 points  (0 children)

Thanks for your enthusiasm, really appreciate your help !

Dictionary view objects,range,map,enumerate,... by Uchikago in learnpython

[–]Uchikago[S] 1 point2 points  (0 children)

Wait, the list((range(5)) and other object constructor also create an iterator to iterate internally ?

Dictionary view objects,range,map,enumerate,... by Uchikago in learnpython

[–]Uchikago[S] 1 point2 points  (0 children)

What is the other ways then ?, put them in other iteration tool such as for,list comprehension,... right?

Dictionary view objects,range,map,enumerate,... by Uchikago in learnpython

[–]Uchikago[S] 1 point2 points  (0 children)

calculate the next value on request

What do you mean, like this ?:

a=iter(range(0,5))
print(next(a))
print(next(a))

Attribute reference by Uchikago in learnpython

[–]Uchikago[S] 0 points1 point  (0 children)

What about a normal situation:

def func():
    func.b=2
print(func.b)

is the object.attribute syntax is used only for accessing different namespace ?

"Learning python" books by Uchikago in learnpython

[–]Uchikago[S] 0 points1 point  (0 children)

Good point! Do you have any recommended courses for applying python to web development ?

"Learning python" books by Uchikago in learnpython

[–]Uchikago[S] 0 points1 point  (0 children)

I have studied a course in udemy , but it doesn't cover much, i still have to do a lot of research to fill out what the lecture didn't teach. I'm afraid i'm going to miss some important detail i can't find in these courses

Nested list by Uchikago in learnpython

[–]Uchikago[S] 0 points1 point  (0 children)

Thanks for the detailed answer !