Comments for Python Tutorials for Kids 13+ https://python4kids.wordpress.com Let's learn Python! Fri, 28 Jul 2023 08:22:05 +0000 hourly 1 http://wordpress.com/ Comment on Slider Spliner by Alexia Lavalley https://python4kids.wordpress.com/2012/09/27/slider-spliner/#comment-54428 Fri, 28 Jul 2023 08:22:05 +0000 http://python4kids.wordpress.com/?p=553#comment-54428 Remarkable is the perfect remedy for anyone seeking to get more carried out in less time!

]]>
Comment on Hooking up the Sunfish Chess Engine (Advanced) by python类中调用另一个程序函数_Python:如何在另一个类中调用函数 - 算法网 https://python4kids.wordpress.com/2014/12/02/hooking-up-the-sunfish-chess-engine-advanced/#comment-33338 Wed, 30 Mar 2022 19:08:46 +0000 http://python4kids.wordpress.com/?p=700#comment-33338 […] Hooking up the Sunfish Chess Engine (Advanced) […]

]]>
Comment on Hello world! by click for more https://python4kids.wordpress.com/2010/07/01/hello-world/#comment-30329 Sat, 22 Jan 2022 15:32:00 +0000 http://python4kids.wordpress.com/?p=1#comment-30329 click for more

Hello world! | Python Tutorials for Kids 13+

]]>
Comment on Python is No Good for Mortality Rates by brendanscott https://python4kids.wordpress.com/2020/03/20/python-is-no-good-for-mortality-rates/#comment-27072 Wed, 18 Aug 2021 04:32:54 +0000 http://python4kids.brendanscott.com/?p=1532#comment-27072 In reply to Al Shams.

Thanks. Sorry I didn’t see this earlier.

]]>
Comment on Python for Kids: Python 3 – Project 9 by brendanscott https://python4kids.wordpress.com/2016/09/11/using-python-3-in-project-9-of-python-for-kids-for-dummies/#comment-27071 Wed, 18 Aug 2021 04:32:36 +0000 http://python4kids.brendanscott.com/?p=1265#comment-27071 In reply to Clarence.

Hi Clarence,
The difference between the two lines is that the first is just testing whether a file exists. The second checks whether there is data in the file. A file can exist with nothing in it if, for example, you open it and then close it again without writing any data to it.
Good luck!

]]>
Comment on Python for Kids: Python 3 – Project 9 by Clarence https://python4kids.wordpress.com/2016/09/11/using-python-3-in-project-9-of-python-for-kids-for-dummies/#comment-27065 Tue, 17 Aug 2021 16:56:28 +0000 http://python4kids.brendanscott.com/?p=1265#comment-27065 In reply to Clarence.

nevermind…i figured it out. this is what i had to do

#if os.path.exists(SAVE_FILE_NAME):
if os.path.getsize(SAVE_FILE_NAME) > 0:

]]>
Comment on Python for Kids: Python 3 – Project 9 by Clarence https://python4kids.wordpress.com/2016/09/11/using-python-3-in-project-9-of-python-for-kids-for-dummies/#comment-27064 Tue, 17 Aug 2021 16:24:29 +0000 http://python4kids.brendanscott.com/?p=1265#comment-27064 Page 274, the source script gets me multiple errors:

Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license()” for more information.
>>>
= RESTART: D:/Users/temp/AppData/Local/Programs/Python/Python39/address_book_2.py
Traceback (most recent call last):
File “D:/Users/temp/AppData/Local/Programs/Python/Python39/address_book_2.py”, line 190, in
controller = Controller()
File “D:/Users/temp/AppData/Local/Programs/Python/Python39/address_book_2.py”, line 99, in __init__
self.address_book = self.load()
File “D:/Users/temp/AppData/Local/Programs/Python/Python39/address_book_2.py”, line 110, in load
address_book = pickle.load(file_object)
EOFError: Ran out of input
>>>

]]>
Comment on Python is No Good for Mortality Rates by Al Shams https://python4kids.wordpress.com/2020/03/20/python-is-no-good-for-mortality-rates/#comment-24340 Thu, 07 May 2020 10:50:43 +0000 http://python4kids.brendanscott.com/?p=1532#comment-24340 Sir please stay safe and well. Best wishes for you and your family.
I found your book Python for Kid very easy to understand even though the information needs update.
*****It still is better than other books with fancy name and only good for lifting weights, in my opion. Thank you for your your hard work your book helped his 40+ man to code again in these Covid 19 times. Alshams 2020

]]>
Comment on Python is No Good for Mortality Rates by Python 4 Kids: Python is No Good for Mortality Rates https://python… | Dr. Roy Schestowitz (罗伊) https://python4kids.wordpress.com/2020/03/20/python-is-no-good-for-mortality-rates/#comment-24052 Sun, 22 Mar 2020 19:23:25 +0000 http://python4kids.brendanscott.com/?p=1532#comment-24052 […] 4 Kids: Python is No Good for Mortality Rates https://python4kids.brendanscott.com/2020/03/20/python-is-no-good-for-mortality-rates/ #python #programming #covid19 […]

]]>
Comment on Python is No Good for Mortality Rates by Python 4 Kids: #Python is No Good for Mortality Rates https://pytho… | Dr. Roy Schestowitz (罗伊) https://python4kids.wordpress.com/2020/03/20/python-is-no-good-for-mortality-rates/#comment-24047 Sat, 21 Mar 2020 03:29:06 +0000 http://python4kids.brendanscott.com/?p=1532#comment-24047 […] 4 Kids: #Python is No Good for Mortality Rates https://python4kids.brendanscott.com/2020/03/20/python-is-no-good-for-mortality-rates/ #covid19 […]

]]>
Comment on Hello world! by Benjamin Arias https://python4kids.wordpress.com/2010/07/01/hello-world/#comment-23492 Fri, 15 Nov 2019 19:51:45 +0000 http://python4kids.wordpress.com/?p=1#comment-23492 In reply to MeneM.

thanks! i was like oh what i do bad :c

]]>
Comment on Foundations: The Ministry of Silly Objects by Emmanuel https://python4kids.wordpress.com/2010/10/25/foundations-the-ministry-of-silly-objects/#comment-20626 Sat, 06 Apr 2019 05:02:24 +0000 http://python4kids.wordpress.com/?p=163#comment-20626 Help me with the code: The code don’t open the file, what is wrong in the code?

import os

def menu():

limpiar = ‘cls’ if os.name == ‘nt’else ‘clear’
os.system(limpiar)

print(‘\t1 – Nuevo Archivo’)
print(‘\t2 – Abrir’)
print(‘\t3 – Agregar Texto’)
print(‘\t4 – Nombre y Modo del archivo’)
print(‘\t9 – Salir’)

def Inicio():

while Inicio:

print(“‘BIENVENIDO A EDITOR DE TEXTO'”)

menu()

opcion = input(‘ELIJA UNA OPCION INTRODUCIENDO SU NUMERO: ‘)

if opcion == ‘1’:
nombreArchivo =input(‘Escibe el nombre del archivo: ‘)
archivo = open(nombreArchivo, ‘w’)
texto = input(‘Ingrese texto a guardar: \n’)
archivo.write(texto)
archivo.close()

elif opcion == ‘2’:
archivo = open(nombreArchivo, ‘r’)
print(archivo.read())
archivo.close()

elif opcion == ‘3’:

archivo = open(nombreArchivo, ‘a’)
texto2 = input(‘Ingrese texto: \n’)
archivo.write(texto2)
archivo.close()

elif opcion == ‘4’:
archivo = nombreArchivo
print(‘Nombre del archivo: \n’),archivo.name
print(‘Modo actual del archivo: \n’),archivo.mode

elif opcion == ‘9’:
exit()

Inicio()

]]>
Comment on Python for Kids Book: Project 7 by Jane From Hong Kong https://python4kids.wordpress.com/2015/09/04/python-for-kids-book-project-7/#comment-14716 Wed, 27 Feb 2019 15:15:29 +0000 http://python4kids.brendanscott.com/?p=744#comment-14716 In reply to brendanscott.

Thank you for the prompt explanation and thank you very much for writing this wonderful book!

]]>
Comment on Python for Kids Book: Project 7 by brendanscott https://python4kids.wordpress.com/2015/09/04/python-for-kids-book-project-7/#comment-14623 Tue, 26 Feb 2019 21:39:56 +0000 http://python4kids.brendanscott.com/?p=744#comment-14623 In reply to Jane From Hong Kong.

This is covered from pages 212 ff. Basically you change the value of ENCRYPT yourself. When you want to encrypt, set it to True. If you want to decrypt set it to False. . You can write some code to set it from within the program (look at project 3 for inspiration). I didn’t do it in the book because I felt it would make the code a little over complicated.

Alternatively, you could make two programs, one for encryption and one for decryption (where the only difference is the value of ENCRYPT).

]]>
Comment on Python for Kids Book: Project 7 by Jane From Hong Kong https://python4kids.wordpress.com/2015/09/04/python-for-kids-book-project-7/#comment-14577 Tue, 26 Feb 2019 13:28:50 +0000 http://python4kids.brendanscott.com/?p=744#comment-14577 Question on ENCRYPT constant: In the book ENCRYPT is set to False, input file is opened, and contents read. It is unclear how the decrypt_msg function could ever be called. When and how does ENCRYPT become True so decrypt_msg function is called?
The code doesn’t have a mechanism to determine whether file contents are encrypted or plaintext, set ENCRYPT to either true of false, then apply the corresponding encrypt_msg or decrypt_msg function.

]]>
Comment on Python for Kids: Python 3 – Project 9 by brendanscott https://python4kids.wordpress.com/2016/09/11/using-python-3-in-project-9-of-python-for-kids-for-dummies/#comment-14518 Tue, 26 Feb 2019 02:50:45 +0000 http://python4kids.brendanscott.com/?p=1265#comment-14518 In reply to Tiffany (@JustTyff).

There are details of each project with modifications needed for the code to run in Python 3 starting with:
https://python4kids.brendanscott.com/2016/03/19/python-for-kids-python-3-project-2/

Regards,

Brendan

]]>
Comment on Python for Kids: Python 3 – Project 9 by Tiffany (@JustTyff) https://python4kids.wordpress.com/2016/09/11/using-python-3-in-project-9-of-python-for-kids-for-dummies/#comment-14341 Sun, 24 Feb 2019 19:22:53 +0000 http://python4kids.brendanscott.com/?p=1265#comment-14341 raw_input is not valid in Python 3. You have raw_input in several places for the Python 3 code. Other than that I found very helpful along with the book. I would highly recommend this to any kid or adult who will wanting to learn the fundamentals of Python.

Will there be an updated version of the book for the Python 3 code?

]]>
Comment on Interacting with raw_input by Nithya V https://python4kids.wordpress.com/2010/07/01/interacting-with-raw_input/#comment-8145 Fri, 28 Dec 2018 11:03:45 +0000 http://python4kids.wordpress.com/?p=14#comment-8145 Nice article on raw_input. I have written an article on the same topic.

https://honingds.com/blog/raw_input-python/

]]>
Comment on 3: Getting Input by Lindsey https://python4kids.wordpress.com/2016/11/25/3-getting-input/#comment-8123 Thu, 06 Dec 2018 08:41:49 +0000 http://python4kids.brendanscott.com/?p=1436#comment-8123 wonderful points altogether, you just won a new reader.
What might you suggest in regards to your post that you
made a few days ago? Any certain?

]]>
Comment on Getting Started by click here https://python4kids.wordpress.com/getting-started/#comment-8078 Fri, 09 Nov 2018 22:08:15 +0000 http://python4kids.wordpress.com/#comment-8078 Having read this I thought it was rather enlightening.
I appreciate you spending some time and energy to put this content
together. I once again find myself personally spending a significant amount of time both reading and commenting.
But so what, it was still worth it!

]]>