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