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