Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Does Python use type determining as a method for variable deceleration ?

user-image
Question ajoutée par هاشم المشارقة , Key Account Manager , Advanced United Systems Ltd. ( A member of Taj Holding Group)
Date de publication: 2016/11/03
abdenacer garidi
par abdenacer garidi , challenge toutes les activitees relevant de mon domaine , setirail

yes  of course the python methode use type method  for variable  deceleration

anis rahman
par anis rahman , IT Project Manager , Concentrix - India

Yes it does but in a unique way, unlike other programming languages , python variable are typed on usage, meaning we can define a variable as a integer at on point in time and later down the programming we can redefine it as character.

Harshal shah
par Harshal shah , Head of Data Engineering , Ecofy

Yes ofcourse. Thts the beauty of the language.

Abdul Khader Shaik
par Abdul Khader Shaik , Cyber Crime Lawyer , Grofers

I guess you have used  a translator for your question or typing mistake.

 

I didn't understand the question completely but I think I got it.

check it out if this might be the solution that you are looking for.

 

 

Yes.You can use Type for declaring a variable.

Ex: project = 36

type(project)  displays type 'int'

sales=45.6

type(sales) displays type'float'

Engineer =type(sales)(project)

check the output now.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?