variables in python | Sololearn: Learn to code for FREE!

+7

variables in python

why variables don't have data type?

2/25/2018 11:13:29 AM

Shivani Goyal

32 Answers

New Answer

+29

they are automatically assigned, it's just how python is made, simple elegant and only requires minimum amount of code, rest Python does for you :)

+17

This is not just in Python. The same is done in VBA for variables by default, in JavaScript, and earlier it was in DBase and its descendants: FoxBase, FoxPro, Clipper.

+12

they do kinda you just don't have to pre define the data type for the variable

+5

The variables data type are determined by their value assigned. This way a variable is flexible in its use, such as where an integer may be useful here then a float may be useful there.

+3

It can't show the variable i've made

+1

Becasuse we asaign a value to a variable and we decide what type of value we give to it

+1

Bcuz they change their data types according to the output value

0

Python is best I't dont like any language

0

Nasıl yok var

0

Only when you declare the values, the variables can be classified

0

Python is a dynamic language

0

Depends on the values assigned to the variables

0

Python are lots of built in libraries and packages

0

They have a data type dependent on what you initialize them to be

0

Python is a programming language. 💯

0

Because Python automatically understands the data type when you assign a value to it and there's no need to determine whether the data type is integer or float or string. For example: A = 7 #No need to write int A B = 7.5 #No need to write float B C = "Hi" #No need to write string C

0

Once an object is assigned to a variable, you can refer to the object by that name. Ex:x=4 here,x is the variable name that assigned to 4.we can refer variable to get the value assigned to it.

0

Variables generally have a data type when they are a assigned to a certain value. The data type of variable can be found by the type of value assigning to it. eg:-We calls different variables as numeric variables as they are assigned to numeric value.(n=5.1 , n is a numeric variable as the float value is assigned to it).

0

I think that the data type in Python is verified by the assignment of a value to the variable, unlike Java

0

Each data type in Python is a class.