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 | 1859+ Python FAQs | Share
__all__-attribute | escape-operator | datetime | function-argument | input | higher-order-function | integers | asyncio-module | data-type | id-function | async | append | comprehension | datatype | compute | assignment-operator | floats | access-modifier | comment | global-variable | boolean-masking | complex-number | assignment-operators | data-type | built-in | implementation | file-handling | __future__ | asyncio | lambdas | join | handling-missing-values-(fillna,-dropna) | array | intering | formatting-with-strftime | class-decorators | dataframe-and-series-objects | anchors-(^,-$) | creating-and-starting-threads | assert | default-arguments | control-statement | design-principle | identity-operator | iterable | else | invalid-list | format | generators-in-python | expression | input-function | counter-function | error | keyword | file_handling | generator | comparison | key-value-pairs | regex | dictionary | encapsulation | dictionary-comprehensions | test-discovery | virtual-environment | thread | type-conversion-and-casting | module | min-max-function | booleans | functional-programming | lambda | working-with-file-paths | goto-function | reading:-read(),-readline(),-readlines() | string-slicing | membership-operators-(in,-not-in) | string-slicing | sum-function | memory | list-slicing | multithreading | namedtuple | method-overloading | global-variable | file | using-assertions-(assertequal,-assertraises) | binary | version | class | floating-point-precision | static-method | __init_subclass__ | mathematical-function | indexing | syntax-error | managing-directories-with-os-and-shutil | list-comprehension | debugging | writing:-write(),-writelines() | iterator | tuple-methods | list-operation | built-in-function | mathematics | match | defining-functions | thread-synchronization | immutable-data-type | encoding | context-manager | method | mysql | round-function | logical-operators | input-function | decimal | functions | unit-testing | statement | generators | interpreter | creating-custom-modules | type-conversion | multiple-inheritance | boolean-and-non-boolean | matrix-list-comprehension | namespace | integer | matrix | def | operator-and | data-type-conversions | precedence-and-associativity | list-mutation | fabs-function | string-iteration | loop-control | using-lists-as-stacks | python-module | name-mangling | expand-tab | math | memory-management | pickling--unpickling | swapping | data-structures-in-python | raise-statement | using-os-and-pathlib-modules | syntax-error | function | thread-safe-data-structures-(queue.queue) | binary-operation | working-with-temporary-files-using-tempfile | indexing:-loc-vs-iloc | installation | python-history | parsing-with-strptime | library | choice | collections | difference-between-threads-and-processes | python | list-methods-and-slicing | init | slicing | literal-characters-and-special-characters | list | scientific-notation | threading | introduction-to-python | pandas | inheritance | working-with-binary-files-(rb,-wb) | logical-operation | aggregating-data-with-functools.reduce() | built-in-function | global | import-method | destructor | sum() | regular-expression | iterators | arbitrary-arguments-(*args,-**kwargs) | identity-operators-(is,-is-not) | zip-function | variable | logical-operator | set-operation | quantifiers-(*,-+,-?,-{}) | arithmetic-operation | string-methods | list-join | multiple-except-blocks | list-vs-tuple | nested-loop | precedence | joining-and-merging-dataframes | recurssion | operations | default-mutable-argument | lambda-function | operator-overloading | slice | classes | multiple-inheritance | introduction-to-multiprocessing | list,-set,-and-dictionary-comprehensions | string-method | tuple-unpacking | lambda-functions | advanced-file-operations | virtual-environment | class-and-inheritance | int | shallow-copy | reading-and-writing-large-files-efficiently | zip | list-method | max-min | mapping-function | identifier | range | call | python-syntax-and-structure | objects | working-with-dates-and-times | sorting | random | indentation | list-comprehensions | arithmetic-expression | counter | bitwise-operator | built-in-modules | center | identity-operator | deep-copy | matplotlib | bitwise | random-function | conditional-statement | math-copysign | class-and-instance-variable | regular-expressions | python-django | loop-control-statements | command-line-parsing | loops | tuples | immutability | data-types | using-join()-and-is_alive()-methods | while-loops | operators | head-and-tail | inherit | list-indexing | conditional-statements | feature | functional-programming | file-handling | heap-memory | staticmethod | numpy | list-comprehension | sys-module | loop | filtering-and-indexing | min-function | introduction-to-threads | datetime.date,-datetime.time,-datetime.datetime | recursion | string-concatenation | benefit | overriding-methods | class-and-object | exception | numeric | error-handling | boolean | factorial-function | methods | single-inheritance | split | map-function | time-series-with-pandas | multiprocessing | using-the-threading-module | docstring | turtle | application | print | dicts | bitwise-operator | descriptors | filter-function | strings | update | formal-and-actual-parameter | rollback | control-flow | exception-handling | touples | yield | why-use-multiprocessing-over-threading?-(gil) | sets | collection | while-else-loop | frozenset | string-method | global-keyword | attribute | version-check | set | copy | lists | constructor | python_version | dictionary-methods | type-conversion | filter | string-formatting | for | magic-method | else-statement | dictionaries | tuple | data-structure | function-and-scope | decorator | directory-operations | raise | string-formatting | error-handling | data_structure | enumerate() | conversion | complex | exponentiation | condition | exception-handling | software-design | opening-files-(open()) | gil | data-structures | sys | data-structure | pseudocode | while-and-for-loop | control-flow | conditional-statement | mutable | reading-and-writing-files | oop | with-statement | operand | operator | sorted | typeerror | walking-through-directories-using-os.walk() | package-management | postfix | while-loop | python-operators | type_conversion | using-else-and-finally | zfill-function | round | odd-number | using-map()-for-transformations | pep | python-repl | polymorphism | parameter | syntax | oops | basic | return-statement | using-yield-in-functions | overflow | print-statement | syntaxerror | pass | object-attribute | operator-or | sorting-and-ranking | string | string-manipulation | stack | logical-operator ...