Level 1 : What is the output of the following program?


import threading 
  
class thread(threading.Thread): 
    def __init__(self, thread_ID): 
        self.thread_ID = thread_ID 
    def run(self): 
        print(self.thread_ID) 
          
thread1 = thread(100) 
  
thread1.start()

Author: KaivalyaG | Tags: thread | 1736+ Python FAQs | Share
string-manipulation | return-statement | global-variable | encoding | nested-loop | pseudocode | shallow-copy | operator-overloading | file-handling | data-structure | expression | precedence | goto-function | list-comprehension | split | head-and-tail | format | input | pandas | string-formatting | exception | syntax-error | data_structure | lambda | iterable | built-in | copy | installation | mathematical-function | attribute | while-loop | escape-operator | binary-operation | application | input-function | inheritance | matrix | turtle | classes | destructor | python-history | python-repl | bitwise | function-argument | math-copysign | max-min | round-function | enumerate() | operations | fabs-function | lambda-function | polymorphism | data-structures | bitwise-operator | functional-programming | mutable | version | class | design-principle | def | variable | list-slicing | arithmetic-operation | sum-function | append | control-statement | comprehension | loop-control | raise | decimal | __all__-attribute | staticmethod | filter-function | loops | decorator | python-django | touples | list-operation | collections | lambdas | basic | input-function | condition | file-handling | call | control-flow | type_conversion | operator | version-check | file | list-vs-tuple | magic-method | string-iteration | type-conversion | formal-and-actual-parameter | mathematics | gil | syntax-error | built-in-function | immutability | command-line-parsing | choice | virtual-environment | global | slice | tuple-unpacking | logical-operation | tuple | datatype | string-method | filter | threading | class-and-inheritance | encapsulation | python-module | access-modifier | dicts | indexing | constructor | keyword | random-function | operator-and | multithreading | function-and-scope | logical-operator | sum() | generators-in-python | random | exception-handling | print-statement | id-function | zip | pickling-&-unpickling | sorted | mapping-function | built-in-function | matrix-list-comprehension | bitwise-operator | list-comprehension | list-method | __init_subclass__ | counter-function | higher-order-function | import-method | update | scientific-notation | matplotlib | match | arithmetic-expression | dictionary | __future__ | boolean | overflow | name-mangling | recursion | functions | inherit | conversion | zip-function | heap-memory | string-slicing | static-method | list-join | generator | dictionaries | software-design | function | rollback | logical-operator | map-function | statement | operators | expand-tab | numpy | identity-operator | min-max-function | string-concatenation | syntaxerror | slicing | context-manager | odd-number | multiprocessing | typeerror | async | assignment-operator | complex-number | int | file_handling | error | center | data-type | list-indexing | conditional-statement | feature | debugging | factorial-function | set | while-else-loop | deep-copy | pep | while-and-for-loop | implementation | list-mutation | descriptors | indentation | zfill-function | print | oop | method | object-attribute | round | identity-operator | string | namespace | objects | parameter | identifier | for | compute | benefit | string-formatting | generators | string-slicing | mysql | python_version | virtual-environment | memory | syntax | recurssion | math | exponentiation | package-management | binary | list | data-structure | numeric | complex | type-conversion | floating-point-precision | regular-expression | iterator | loop | multiple-inheritance | lists | global-keyword | interpreter | else-statement | docstring | set-operation | frozenset | methods | namedtuple | global-variable | regex | python | init | stack | asyncio-module | min-function | invalid-list | precedence-and-associativity | operator-or | operand | control-flow | postfix | swapping | sys | library | data-type | immutable-data-type | class-and-instance-variable | asyncio | yield | error-handling | comment | range | with-statement | collection | counter | oops | default-mutable-argument | array | thread | memory-management | conditional-statement | class-and-object | boolean-and-non-boolean | sys-module | sorting | comparison | datetime | join | exception-handling | assert | integer | module | string-method ...