Sobes.tech
Junior — Middle

Koja funkcija u programskom jeziku vraća tip prosleđene vrednosti?

sobes.tech АИ

Одговор од АИ

U jeziku Python, funkcija type() vraća tip prosleđene vrednosti.

Primer:

print(type(10))        # <class 'int'>
print(type('zdravo'))  # <class 'str'>
print(type([1, 2, 3])) # <class 'list'>