Level 1 : What is type casting in Python?

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