Download presentation
Presentation is loading. Please wait.
1
Creativity & The greater good
Programming is a creative and powerful process
2
Computational Thinking
…is a way of solving problems, designing systems, and understanding human behavior that draws on concepts fundamental to computer science. …means creating and making use of different levels of abstraction, to understand and solve problems more effectively. …means thinking algorithmically and with the ability to apply mathematical concepts such as induction to develop more efficient, fair, and secure solutions. …means understanding the consequences of scale, not only for reasons of efficiency but also for economic and social reasons.
3
“computer scientists” can do what?
Meet a computer scientist. Coding for good! 7 things you should know when starting to program
4
Sound! Using Winsound module
5
Use Python to make the computer beep
Import winsound A sound is composed of a frequency and a length of time. winsound.Beep( freq in hz, length in ms) for example: winsound.Beep(50, 100) On this example, a sound of 50 hz will play for 100 milliseconds
6
Play a sound file This is a bit more tricky, but we can play a wave sound file within Python. You will need the exact location of the wav file – see below winsound.PlaySound( file name, flag) for example: winsound.PlaySound(‘H:\sound.wav’, 0)
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.