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