0

Python

I want to ask something about python

26th Oct 2025, 4:51 PM
Afshu Afshu
Afshu Afshu - avatar
4 odpowiedzi
26th Oct 2025, 5:00 PM
BroFar
BroFar - avatar
0
I can't understand this language I know about C language and these difference confusing me so much
26th Oct 2025, 5:03 PM
Afshu Afshu
Afshu Afshu - avatar
0
Afshu Afshu please clarify ... python is a very easy language compared to c c variable assignments: int a = an integer; // 'int' reserves a specific amount of memory for a whole number. // The type is FIXED for the life of the variable 'a'. char *b = a string; // 'char *' (or array) is used for a string of characters. // You must manually manage the memory for this string. python variable assignments a = an integer # Python automatically determines 'a' is an integer (int). b = a string # Python automatically determines 'b' is a text string (str). In short, Python handles the bookkeeping (type and memory management) for you, which is why your simple assignment example is so much shorter and easier than the C equivalent. You only worry about what you want to do, not how the computer must store it.
26th Oct 2025, 5:45 PM
BroFar
BroFar - avatar
0
I will try to understand this
26th Oct 2025, 5:46 PM
Afshu Afshu
Afshu Afshu - avatar