Python Forum
Newbie have thoughts about logic
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie have thoughts about logic
#13
(Sep-13-2021, 06:15 AM)perfringo Wrote:
(Sep-12-2021, 06:11 PM)sdd Wrote: if for-loop means for each - why not simply use the for each expression in python instead of the for-loop expression? Then people didn't have to learn that for-loop really means for each. Maybe what I want is a computer that has learned my English instead of me having to learn python :)

I have to say that computer will have trouble to learn your English as it seems to be somewhat in par with your Python. Hint: Python is computer language, python is nonvenomous snake and you keep talking about the latter.

Can you imagine what will happen when computer has to guess (ambiguity of natural language enforces it)? Computer will not follow commands you give, instead it will be guessing what you meant by these commands and act accordingly. This makes programming quite pointless, there is no guarantee that computer will execute your commands. Isin't this perfect scenario for creating self-aware Skynet? "All humans do die, so it's better for the nature that they will die right after the birth in order to minimize their negative impact. Benefits out-weight potential risks. Executing.... "

I see that you don't have trouble writing didn't instead of did not. If you have reason to do so, maybe you will find reason why only for instead of for each?

You wrote: 'Why use the word "print" when you mean "Check if"? Print means something else in English.'. First of all - 'print' has nothing to do with 'check if'. Zero, zip, nada. 'print' is command to write to the standard output (which is usually means to the screen) and you can redirect it to somewhere else if you choose so. Translation of print("expensive" not in txt) from Python to English: 'check whether "expensive" is not in txt and write the result of this check to the standard output'

As I wrote earlier - computer languages are artificial languages - a languages whose rules are explicitly established prior to its use. If you don't want to learn and follow the rules maybe you should move on with your life Smile .
Thanks for the help. I appreciate it. Although it may seem I am complaining over Python it's really my attempt to see if it can be improved (from my point of view), and if not, I will at least learn new stuff from all the great answers. PS I don't think anything artificial can be self-aware as it is not living. But time will tell...
Reply


Messages In This Thread
Newbie have thoughts about logic - by sdd - Sep-01-2021, 10:20 PM
RE: Newbie have thoughts about logic - by Yoriz - Sep-01-2021, 10:33 PM
RE: Newbie have thoughts about logic - by perfringo - Sep-02-2021, 04:15 AM
RE: Newbie have thoughts about logic - by sdd - Sep-12-2021, 06:11 PM
RE: Newbie have thoughts about logic - by perfringo - Sep-13-2021, 06:15 AM
RE: Newbie have thoughts about logic - by sdd - Sep-13-2021, 08:09 PM
RE: Newbie have thoughts about logic - by Lou - Sep-02-2021, 04:16 AM
RE: Newbie have thoughts about logic - by sdd - Sep-12-2021, 06:01 PM
RE: Newbie have thoughts about logic - by Yoriz - Sep-12-2021, 06:14 PM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-13-2021, 02:05 AM
RE: Newbie have thoughts about logic - by sdd - Sep-13-2021, 07:41 PM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-13-2021, 09:00 PM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-14-2021, 02:32 AM
RE: Newbie have thoughts about logic - by Larz60+ - Sep-14-2021, 02:51 AM
RE: Newbie have thoughts about logic - by sdd - Sep-15-2021, 01:07 AM
RE: Newbie have thoughts about logic - by bowlofred - Sep-15-2021, 03:11 AM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-15-2021, 06:42 PM
RE: Newbie have thoughts about logic - by perfringo - Sep-15-2021, 03:35 AM
RE: Newbie have thoughts about logic - by sdd - Sep-15-2021, 11:11 AM
RE: Newbie have thoughts about logic - by perfringo - Sep-16-2021, 07:07 AM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-15-2021, 01:27 AM
RE: Newbie have thoughts about logic - by Larz60+ - Sep-15-2021, 09:08 AM
RE: Newbie have thoughts about logic - by sdd - Sep-15-2021, 11:37 AM
RE: Newbie have thoughts about logic - by snippsat - Sep-15-2021, 12:29 PM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-15-2021, 06:50 PM
RE: Newbie have thoughts about logic - by ndc85430 - Sep-16-2021, 06:09 PM
RE: Newbie have thoughts about logic - by SamHobbs - Sep-16-2021, 07:36 PM
RE: Newbie have thoughts about logic - by Serafim - Sep-17-2021, 10:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Thoughts on interfacing with a QR code reader that outputs keystrokes? wrybread 1 1,489 Oct-08-2021, 03:44 PM
Last Post: bowlofred
  How to timestamp a Python program, your thoughts? Orthoducks 2 4,671 Dec-02-2016, 12:06 AM
Last Post: Orthoducks

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020