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