No. Python is a scripting language, which means that it requires an external program to interpret the python source code for it to be executed. To be able to execute Python, you require the Python Interpreter to be installed. This interpreter only runs in an existing operating system, such as Windows or Linux. On top of that, Tkinter requires a window manager to be present. On Windows, the window manager is part of the OS.
This renders it impossible to write an OS directly in python.
Right, I see what you mean, but technically, it wouldn't be an OS, hence my confusion.
It's quite a good task for learning Python and becoming familar with Tkinter, in fact it's how I learned much of the VB5 which I have now forgotten :)
I think there is some confusion about the nature of operating systems going on here. That is natural, as much of the OS is hidden from view, while most of the things people think of as being part of the OS are actually separate programs (or at most sub-sections of the OS proper). There is a definite disconnect between what OS developers (both professional and hobbyist) think of as 'the operating system' and what most users and client-programmers think of as the OS.
Generally speaking, most people think the operating system is the Graphical User Interface and the Window Manager, the upper-most levels of the system. This isn't really the case, however; in fact, these aren't necessarily part of the operating system at all. For example, most Unices - Linux, FreeBSD, and MacOS X included - do not have a GUI or Window Manager as part of the operating system; in fact, the entire user interface, including the text shell, runs as a set of user-level applications. Even in Windows, most of the windowing system is run in user space.
Conversely, to a serious OS developer, the real meat of the OS is in the kernel, the lowest level part of the system. This is where things like memory management and process scheduling take place, and but it is only a very small part of the whole system.
Just to put the issue of operating systems in different programming languages into perspective, there is a page on the OS-Dev wiki which discusses the language capabilities needed to develop an OS. In short, it is possible to write parts an operating system in an interpreted language, but you would still need either to write the kernel in a lower level language such as assembly or C, or write a compiler for a sub-set of the language, and a do lot of work in said lower-level language. You would then need to develop a customized version of the language interpreter as well. It may be worth it to you to do this for Python - and you wouldn't be the first to try - but it really isn't practical. That hasn't stopped me from an even more ambitious goal with Thelema (though other things have), but it would be enough to make most people stop short.
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...