About 532,000 results
Open links in new tab
  1. What does colon equal (:=) in Python mean? - Stack Overflow

    In Python this is simply =. To translate this pseudocode into Python you would need to know the data structures being referenced, and a bit more of the algorithm implementation. Some notes about psuedocode: := is the assignment operator or = in Python = is the equality operator or == in Python There are certain styles, and your mileage may vary:

  2. python - 'virtualenv' won't activate on Windows - Stack Overflow

    1 Search PowerShell Right click on Windows PowerShell and Run as administrator. Put below command and hit enter. Set-ExecutionPolicy Unrestricted -Force Restart you system and try to activate python virtual environment. if your virtual environment was created successfully then it's …

  3. python - 'pip' is not recognized - Stack Overflow

    Apr 25, 2016 · Step 3 - Press Modify Step 4 - Select pip Step 5 - Select Add Python to environment variables and install everything This will install pip and add both, Python and pip to your envirnoment variables. Second Option By default, pip is installed in C:\Python34\Scripts\pip To add the path of your pip installation to your PATH variable follow theese ...

  4. syntax - What do >> and << mean in Python? - Stack Overflow

    Apr 3, 2014 · 15 The other case involving print >>obj, "Hello World" is the "print chevron" syntax for the print statement in Python 2 (removed in Python 3, replaced by the file argument of the print() function). Instead of writing to standard output, the output is passed to the obj.write() method. A typical example would be file objects having a write() method.

  5. What does [:-1] mean/do in python? - Stack Overflow

    Mar 20, 2013 · Working on a python assignment and was curious as to what [:-1] means in the context of the following code: instructions = f.readline()[:-1] Have searched on here on S.O. and on Google but to no avail.

  6. python - What does the 'b' character do in front of a string literal ...

    I don't think this applies to Python. I did find this documentation on the Python site about using a u character in the same syntax to specify a string as Unicode. Unfortunately, it doesn't mention the b character anywhere in that document. Also, just out of curiosity, are there more symbols than the b and u that do other things?

  7. How can I check my python version in cmd? - Stack Overflow

    Jun 15, 2021 · I has downloaded python in python.org, and I wanted to check my python version, so I wrote python --version in cmd, but it said just Python, without version. Is there any other way to find out pyt...

  8. python - Maximum and Minimum values for ints - Stack Overflow

    Sep 30, 2011 · How do I represent minimum and maximum values for integers in Python? In Java, we have Integer.MIN_VALUE and Integer.MAX_VALUE. See also: What is the maximum float in Python?.

  9. How can I find where Python is installed on Windows?

    Mar 15, 2009 · I want to find out my Python installation path on Windows. For example: C:\\Python25 How can I find where Python is installed?

  10. How to create a venv with a different Python version

    Dec 20, 2021 · I believe the best way to work with different python versions in isolation is pyenv, managing virtual environments can be done with pyenv-virtualenv. I think this article from Real Python does a good job at explaining how to manage different Python versions as well as different virtual environments. For posterity, with the tools mentioned above you can do the following …