19/19 Stuck


#1

Hi,guys
This is my code:

def distance_from_zero(num):
  if type(num) == int or type(num) == float:
    return abs(num)
  else:
    return "Nope"

I think it is correct, but the screen shows things like this:

Traceback (most recent call last):
  File "/var/codecademy/codex/runners/python/cli_runner.py", line 152, in <module>
    CLIRunner().start()
  File "/var/codecademy/codex/runners/python/base_runner.py", line 46, in start
    self.handle_command(command, code)
  File "/var/codecademy/codex/runners/python/cli_runner.py", line 77, in handle_command
    res = self.execute(code, self.run_globals)
  File "/var/codecademy/codex/runners/python/cli_runner.py", line 119, in execute
    runner_io.stderr.write(''.join(list))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 45: ordinal not in range(128)


Do you guys know how to deal with this?
Thanks,

RZ


#2

if i put your code here:

https://repl.it/repls/ScaryFarNorthernelephantseal

the second line looks like subscript, the smaller text placed slightly lower on the line

I would recommend you to rewrite line 2


#3

Great!! It work. Really appreciate.


#4