Level 1 : What is the output of the below python code?


import socket 
ip = socket.gethostbyname('www.google.com')
print(ip)

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