Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Input function
#3
If you don't know where to start, try the help command in IDLE.
Output:
>>> help(input) Help on built-in function input in module builtins: input(prompt=None, /) Read a string from standard input. The trailing newline is stripped. The prompt string, if given, is printed to standard output without a trailing newline before reading input. If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError. On *nix systems, readline is used if available. >>> help(print) Help on built-in function print in module builtins: print(...) print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) Prints the values to a stream, or to sys.stdout by default. Optional keyword arguments: file: a file-like object (stream); defaults to the current sys.stdout. sep: string inserted between values, default a space. end: string appended after the last value, default a newline. flush: whether to forcibly flush the stream. >>>
Reply


Messages In This Thread
Input function - by Fabio87 - Dec-19-2020, 11:16 AM
RE: Input function - by buran - Dec-19-2020, 11:28 AM
RE: Input function - by Fabio87 - Dec-19-2020, 05:40 PM
RE: Input function - by PyMahan - Dec-26-2020, 07:21 PM
RE: Input function - by jefsummers - Dec-19-2020, 01:33 PM
RE: Input function - by ndc85430 - Dec-19-2020, 05:50 PM
RE: Input function - by jefsummers - Dec-20-2020, 08:45 PM
RE: Input function - by perfringo - Dec-21-2020, 07:59 AM
RE: Input function - by Fabio87 - Dec-23-2020, 05:36 PM
RE: Input function - by jonny0000 - Jan-02-2021, 08:13 AM
RE: Input function - by gruntfutuk - Jan-09-2021, 11:36 AM
RE: Input function - by Alex143 - Apr-29-2022, 03:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to print the docstring(documentation string) of the input function ? Kishore_Bill 1 3,672 Feb-27-2020, 09:22 AM
Last Post: buran
  Writing a function that changes its answer based on user input SirRavenclaw 2 2,971 Dec-21-2019, 09:46 PM
Last Post: Clunk_Head
  New to Python - tiny coding assistance on user input function and assign to variable Mountain_Duck 1 2,620 Mar-23-2019, 06:54 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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