About 94,700 results
Open links in new tab
  1. python - What does print (... sep='', '\t' ) mean? - Stack Overflow

    Mar 1, 2014 · sep='' in the context of a function call sets the named argument sep to an empty string. See the print() function; sep is the separator used between multiple values when …

  2. python - Is there a way to use the sep="" function with an inputed ...

    Jul 1, 2023 · I have been trying to use the separator function with a message that uses the input function, but it seems the that the separator function does not work and it only prints out the …

  3. python - How to use SEP in for loop? - Stack Overflow

    Aug 29, 2019 · How to use SEP in for loop? [duplicate] Asked 6 years, 3 months ago Modified 1 year, 7 months ago Viewed 4k times

  4. Python How to use sep=" " only between second and third item

    Jul 25, 2017 · How can I use sep=" " to get a full stop between whatever a is and "This is your new world", but not between "Welcome to" and whatever a is? I am using Python 3.

  5. How to use "/" (directory separator) in both Linux and Windows in …

    Apr 15, 2013 · I have written a code in python which uses / to make a particular file in a folder, if I want to use the code in windows it will not work, is there a way by which I can use the code in …

  6. python - Proper use of sep in print - Stack Overflow

    Oct 4, 2015 · 2 sep is an argument to the print() function, which requires you use Python 3 or use a special from __future__ import print_function statement in Python 2 (see the print() function …

  7. python - how to use the sep parameter in the print function …

    Jan 15, 2020 · how to use the sep parameter in the print function correctly Asked 5 years, 4 months ago Modified 5 years, 4 months ago Viewed 485 times

  8. which one should I use: os.sep or os.path.sep? - Stack Overflow

    Jun 20, 2020 · As mentioned in the python docs, both os.path.sep and os.sep return the same output. The character used by the operating system to separate pathname components.

  9. python - How to use sep parameter in .format? - Stack Overflow

    Jul 10, 2022 · sep is an optional keyword argument to the built-in print() function, so using it would not apply when displaying a single value as you're doing.

  10. How to split a dos path into its components in Python

    4 The stuff about about mypath.split("\\") would be better expressed as mypath.split(os.sep). sep is the path separator for your particular platform (e.g., \ for Windows, / for Unix, etc.), and the …