Sunday, March 30, 2008
Mar 30
Today we learned about the range function. You can use the for function with range. We also learned about the enumerte that you can use inside the for loop. Enumerate takes the range(len)) functions and puts it in a easier way to enderstand.
Thursday, March 20, 2008
Mar 20
Learned about gasp today. It has a lot of bugs so it wasnt very easy. I deduced that sleep is the speed of how fast the thing is moving. I get pretty much all of the stuff i read except the formulas that didnt work because of errors. They weren't defined. Leanred how to make a ball bounce and make keyboard input work, with Mr. Whittakers help.
Monday, March 17, 2008
Mar 18
Today we mainly just did excersises too. We learned about how to count how many times a substring occurs in a longer string. We also learned how to remove sub strings and all sub strings for a given string.
Mar 17
Learned today about what a palindrome is. Leanred how to cheat using other functions that you had already named. Mostly today we just did excersises and didnt really do any new work and didnt learn anything specifically new.
Thursday, March 13, 2008
Mar 14
Learned about all the things you can do with the mod symbol. YOu can change wherea a number occures and makes things a lot simpler. Learned if you put a =0 after a paramater it makes it optional. Like putting =0 makes it defualt if you put nothing there it will default to 0.
Mar 13
Today i learned that you cannot change part of a string. That doesnt work. We also learned about the values of symblos and if theyre greater than or less than things. That was werid. A lso learned about the boolean operator in. It checks if a string is a substring of another string.
Tuesday, March 11, 2008
Mar 12
Today i learned about the len function. It tells you how long a string is. I learned about all the stuff brackets can do. Also learned about colons and what they can do, like all the wat through a certain point to a certain point. the brackets take which ever number is inside of the string and takes it. THe numbers start at 0 not one so kinda always add one to make it less confusing.
Mar 11
Learned about the is_prime and made it work more efficeitnly by making x = to 2 instead of 1. I still have a while to go on the rest of chapter 6 like the print digits. I forgot how to chop the digits off. Darn...
Monday, March 10, 2008
Mar 10
Today i modified the num_digits() code to accept 0 and a negative number by making special exceptions for 0 and timesing a negative number by -1 to make that work. Mainly just worked on chp6 excersiese. learnt about infinite loops, like when a said, while n is true and n is false essentially. THat was a duh.... moment.
Thursday, March 6, 2008
Mar 7
Today I learnt about triangular numbers and what they are. I learent about the repeditve positive values of doing algorithms over and over. That can be good. I learnt about functions and how they make everything not always shorter but easier to understand.
Wednesday, March 5, 2008
Mar 6
Learnt how to use tables and make two dimensional tables as well. Learnt about encapulation and how to tab a bunch of lines.
Tuesday, March 4, 2008
Mar 5
Today I learned about the while statement. I had learnt about this already in Guido and learnt more about it in python. Learned more about infinite loops and how to countdown and sequence and check how many of a number there is.
Monday, March 3, 2008
Mar 4
Finished the assignments. I learned how using return and one line of code how to do pretty much all of the functions. I learned that my problems with the celcuius and faerenheit was i didnt have the int and round functions in there to change the type and round off. Got it now though.
Sunday, March 2, 2008
Mar 3
Learned about that you cant put two parenthesis statements next to each other and make them times. you have to put the little times thingy. Learned to always put return, instead of print, and almost finished all the excersises.
Subscribe to:
Posts (Atom)