Python Forum
Resources on Learning Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resources on Learning Python
#20
I have been reading the pdf book Think Like a Scientist. Here are a list of pros and cons.

Cons:

This could also be a pro but there is a lot of theoretical math that he speaks about. Good things I took all the CS Math courses.
The exercises at the end of each chapter lack more descriptive ways on how and what to use in the exercise.

Pros:

He is more concerned with writing code that is easier for someone to understand than taking a little hit on performance.
He also uses a lot of primitive data types, instead of using the built in functions that can decrease performance. Why use the
sum()
function when you can just use a running total such as
sum =+ num
.
#Substitute internal functions when you can, e.g. math.squrt(2.0) is the same as

num = 2.0 ** 0.5
I really like that a lot.


He likes to stay away from complex conditional and logical expressions. He doesn't recommend using the "not" keyword.
He also has some nice little tricks about programming in general. Things like #Intialize variables with condition included


sword_check = sword_charge >= 0.90
shield_check = shield_energy >= 100

if sword_check and shield_check:
   print("The dragon crumples in a heap. You rescue the gorgeous princess!")
else:
   print("Your attack has no effect, the dragon fries you to a crisp!")
Basically, he gives a different perspective from a mathematician. This really helps when wanting to use primitive data types instead of internal functions.

I recommend this book to most everyone. However, if you are a beginner with no programming experience at all; I would suggest something else.
Reply


Messages In This Thread
Resources on Learning Python - by muzikman - Dec-03-2020, 05:20 PM
RE: Resources on Learning Python - by Larz60+ - Dec-03-2020, 08:25 PM
RE: Resources on Learning Python - by muzikman - Dec-05-2020, 02:59 PM
RE: Resources on Learning Python - by buran - Dec-05-2020, 03:20 PM
RE: Resources on Learning Python - by muzikman - Dec-05-2020, 03:20 PM
RE: Resources on Learning Python - by muzikman - Dec-05-2020, 03:26 PM
RE: Resources on Learning Python - by Larz60+ - Dec-05-2020, 06:36 PM
RE: Resources on Learning Python - by muzikman - Dec-05-2020, 07:23 PM
RE: Resources on Learning Python - by muzikman - Dec-05-2020, 08:04 PM
RE: Resources on Learning Python - by muzikman - Dec-05-2020, 08:13 PM
RE: Resources on Learning Python - by Larz60+ - Dec-06-2020, 10:11 PM
RE: Resources on Learning Python - by muzikman - Dec-08-2020, 03:37 PM
RE: Resources on Learning Python - by DT2000 - Dec-08-2020, 05:27 PM
RE: Resources on Learning Python - by muzikman - Dec-08-2020, 09:33 PM
RE: Resources on Learning Python - by muzikman - Dec-09-2020, 03:15 PM
RE: Resources on Learning Python - by Larz60+ - Dec-08-2020, 08:31 PM
RE: Resources on Learning Python - by Larz60+ - Dec-09-2020, 02:06 AM
RE: Resources on Learning Python - by muzikman - Dec-09-2020, 03:13 PM
RE: Resources on Learning Python - by Larz60+ - Dec-09-2020, 06:00 PM
RE: Resources on Learning Python - by muzikman - Dec-13-2020, 04:35 PM

Forum Jump:

User Panel Messages

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