Anyone good with Python? how do I loop back to the top of the program after an IF or ELIF statement using True or False statements?
Code: while True: - your stuff - if - some condition -: break Infinite loop with exit (break) on condition. I am not an expert on Python, but according to online tutorials that is a common approach. https://wiki.python.org/moin/WhileLoop
Yeah, the continue and break commands work ok to stop an infinite loop. I was just wondering if it was possible by another appoach. Thanks.
https://realpython.com/python-thinking-recursively/ But I would not advise to use recursion - too complicated.
Hmmm. The Len() function is used to call numbers. I'll try and figure it out. I'm pretty new to python so it might be something I'll learn later on.
I'm mainly learning it as it's an easy language to start off with. I'll probably move towards C++ at some point.
I was in C/C++ (witnessed a C++ birth) for 18 professional years, then I was attached to new project using C# - and since then I don`t want to go back to C++.
Doesn't C++ give you more control over memory management? From what I've seen C++ is more for large scale projects as it's time consuming to code. I'm enjoying Python so far. I find it sticks in my memory without too much practice.
It gives, but if you will do tricks with memory you can get hard to fix bugs. You don`t have to struggle with memory, you have to struggle with the task. But memory difference is a little thing, I prefer the syntax and implementation of "environment" (libraries, frameworks) in C# (and in .Net Framework overall). As for the size of projects and of time consumption, you rarely write whole code from scratch, and usually you use patterns established in the industry. Modern C++ has all features of C# now, but the syntax and implementation details are sometimes awkward and non-intuitive. PS In my eyes C# is more simple for the study, hence it would be more logical to study more simple language first and then study less simple one.
Also I would recommend to look into PowerShell - it is deployed with Windows, it is based on .Net Framework (and has direct access to all classes), it is script language, it has thousands of commandlets (a term) at your disposal - very useful for automation in Windows.
I had a look at Visual studio. But found it a bit clunky. But some business use it. I've used Arch Linux in the past but couldn't get use to it. I guess I have been using Windows for too long. Python was easier to use in Linux though.
I work in Visual Studio since 2000 (now it is 4th work place since then - all companies were using VS), it is superb IDE (feels like home). I am sure there are IDEs for all Operating Systems, but some Linux people like to use command line approach with make-files - this is ancient crap.
For anyone starting to learn Python (like me) I highly recommend Corey Schafers youtube vids. https://www.youtube.com/user/schafer5