Python Forum
Function / Arguments / Error Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function / Arguments / Error Help
#7
(Jul-01-2018, 10:23 AM)Ghosty Wrote: Thanks so much but now i have

File "sniffer.py", line 23
time.sleep(2)
^
IndentationError: unexpected indent

:(
well, pay more attention and fix the indentation... You had to add one (1) space to the line, that is immediately after try:
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Function / Arguments / Error Help - by Ghosty - Jul-01-2018, 10:05 AM
RE: Function / Arguments / Error Help - by buran - Jul-01-2018, 10:16 AM
RE: Function / Arguments / Error Help - by Ghosty - Jul-01-2018, 10:18 AM
RE: Function / Arguments / Error Help - by buran - Jul-01-2018, 10:21 AM
RE: Function / Arguments / Error Help - by Ghosty - Jul-01-2018, 10:23 AM
RE: Function / Arguments / Error Help - by buran - Jul-01-2018, 10:23 AM
RE: Function / Arguments / Error Help - by buran - Jul-01-2018, 10:24 AM
RE: Function / Arguments / Error Help - by Ghosty - Jul-01-2018, 10:32 AM
RE: Function / Arguments / Error Help - by buran - Jul-01-2018, 10:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  calling external function with arguments Wimpy_Wellington 7 1,695 Jul-05-2023, 06:33 PM
Last Post: deanhystad
  Error TypeError: output_type_handler() takes 2 positional arguments but 6 were given paulo79 1 2,145 Oct-17-2022, 06:29 PM
Last Post: paulo79
  'namespace' shorthand for function arguments? shadowphile 5 2,767 Aug-11-2021, 09:02 PM
Last Post: shadowphile
  Checking the number of arguments a function takes Chirumer 3 2,314 Jul-06-2021, 04:56 PM
Last Post: Chirumer
  Possible to dynamically pass arguments to a function? grimm1111 2 2,343 Feb-21-2021, 05:57 AM
Last Post: deanhystad
  How to pass multiple arguments into function Mekala 4 2,613 Jul-11-2020, 07:03 AM
Last Post: Mekala
  How to give a name to function arguments in C-API? WonszZeczny 0 1,419 Jun-22-2020, 10:20 AM
Last Post: WonszZeczny
  invalid keyword arguments error sagpal 3 2,548 Jun-04-2020, 10:24 PM
Last Post: bowlofred
  Function Recognises Variable Without Arguments Or Global Variable Calling. OJGeorge4 1 2,415 Apr-06-2020, 09:14 AM
Last Post: bowlofred
  Pass Arguments to Function phillyfa 2 2,154 Mar-27-2020, 12:05 PM
Last Post: phillyfa

Forum Jump:

User Panel Messages

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