If everything is an object in Python, how is the value of a primary type stored?
In Python, everything is an object. I’m fine with this. If I inspect a list or even a float, I can see there is a class associated with that data. But at the end of the day, if I make an value
x = 1
, there has to be a value of 1 somewhere. If the class has an attribute “value” like this:
If everything is an object in Python, how is the value of a primary type stored?
In Python, everything is an object. I’m fine with this. If I inspect a list or even a float, I can see there is a class associated with that data. But at the end of the day, if I make an value
x = 1
, there has to be a value of 1 somewhere. If the class has an attribute “value” like this:
Python Custom Programming Language [closed]
Closed 2 days ago.
Making a programming language but I can’t get the inco function to work
I’m are creating a programming language called ‘procol’ with basic syntax. In this language, you want to create a functionality where a variable can be set to the function inco(”), which will open a new window with a prompt and a text bar. The user’s input in the prompt should then set the value of that variable. However, I’m facing difficulties in implementing this feature. I’m seeking assistance to resolve this issue. For extra information, I’m using the tkinter module. Heres the code(I just started on it so there’s lack of currently usable functions):
Making a programming language and it won’t set the answer to the prompt with ‘inco’ function
I’m making a programming language named ‘procol’. It has basic syntax, much like a regular old programming language. Since the output can only display text, I decided to make it so that when a variable is set to inco(”), it will make a new window, asking with the prompt, and with a text-bar. I tried making the answer submitted on the text bar the variables value but it won’t work. For extra information, I’m using the tkinter module. Heres the code(I just started on it so there’s lack of currently usable functions):
Single operator floor division
What programming languages other than Python has the floor division as a single operator from the programmers’ point of view?
Why does it even exist? Please don’t give me the answer of because it can!