ZeroDivisionError: Division by 0
Jump to navigation
Jump to search
ZeroDivisionError: Division by 0 is designed by PSTF and inspired by SyntaxError: invalid syntax which is inspired by foo : The term 'foo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. which is inspired by bash: foo: No such file or directory. It imitates yet another Python error - Zero Division Error.
Command
There are ℵ0 commands, and they prints:
File "<stdin>", line 1 [command] ZeroDivisionError: Division by 0
Examples
ZeroDivisionError
x = 114514 / 0
Quine
File "<stdin>", line 1 [command] ZeroDivisionError: Division by 0
Interpreters
Python
print('\n'.join([f' File "<stdin>", line 1\n {i}\n\nZeroDivisionError: Division by 0' for i in __import__('sys').stdin.read().split('\n')]))
C++
#include<bits/stdc++.h> char _[1000000];int main(){while(!feof(stdin)){printf(">>> ");gets(_);printf(" File \"<stdin>\", line 1\n %s\n\nZeroDivisionError: Division by 0\n",_);}}
Batch
@echo off :bad set /p x=^>^>^> echo File "<stdin>", line 1 echo %x% echo. echo ZeroDivisionError: Division by 0 goto bad
See also
- SyntaxError: invalid syntax
- NameError
- IndentationError: unexpected indent
- ZeroDivisionError: Division by 0/NoQuine