ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل هاشم المشارقة , Key Account Manager , Advanced United Systems Ltd. ( A member of Taj Holding Group)
تاريخ النشر: 2016/11/03
abdenacer garidi
من قبل 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
من قبل 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
من قبل Harshal shah , Head of Data Engineering , Ecofy

Yes ofcourse. Thts the beauty of the language.

Abdul Khader Shaik
من قبل 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.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟