Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How do you make functions that take a variable that is not defined?
Post: RE: How do you make functions that take a variable...

(Sep-23-2018, 03:14 AM)snippsat Wrote: It's called Default Argument Example: def foo(x, y=5): print(f'The sum is: {sum((x, y))}')Now if i use this function i only need to give argument for x par...
magic General Coding Help 6 4,521 Sep-24-2018, 09:42 AM
    Thread: How do you make functions that take a variable that is not defined?
Post: How do you make functions that take a variable tha...

I don't know exactly what this is called toolbar.pack(side=TOP, fill=X)Here above, you can see that TOP, X was passed as a value. (not "TOP", "X") And those are, I assume, predefined by the library t...
magic General Coding Help 6 4,521 Sep-23-2018, 02:34 AM
    Thread: Which interpreter on my computer should I use?
Post: Which interpreter on my computer should I use?

I am using visual studio code and there is a menu where I can pick interpreter like below. There are so many of them. I feel like I need to clean them up somehow. Is there a way to do it? Out of ...
magic General Coding Help 1 2,029 Sep-20-2018, 08:35 PM
    Thread: What's the use case of collections.counter?
Post: What's the use case of collections.counter?

I came across this module and I wonder why I would use it. You can just use list.count to count elements in iterables. c = Counter(['egg', 'ham']) print(c['bacon']) d = ['egg', 'ham'] print(d.count(...
magic General Coding Help 2 2,654 Sep-20-2018, 08:21 PM
    Thread: What's the difference between pip and pip3?
Post: RE: What's the difference between pip and pip3?

(Sep-13-2018, 06:35 PM)snippsat Wrote: Test with pip -V or pip2 -V | pip3 -V It's so simple that if pip3 point to Python 3,then pip3 will install to Python 3. Linux Mint 19: tom@tom-VirtualBox:~$ pi...
magic General Coding Help 5 48,239 Sep-20-2018, 08:15 PM
    Thread: What's the difference between pip and pip3?
Post: RE: What's the difference between pip and pip3?

(Sep-13-2018, 05:04 AM)Gribouillis Wrote: Yes it is true on systems such as linux which have python 2 and python 3 installed, but you can invoke pip through the python interpreter by using the synta...
magic General Coding Help 5 48,239 Sep-13-2018, 04:43 PM
    Thread: What's the difference between pip and pip3?
Post: What's the difference between pip and pip3?

Pip is for python version less than 3. and pip3 is used when you want to install packages for python version 3 or higher. Is this correct? **huh**
magic General Coding Help 5 48,239 Sep-13-2018, 04:42 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020