Computer Science Term 3 – Python - Grade 10 advanced …



Computer Science Term 3 – Python - Grade 10 advanced solutionsNote: No solutions are provided for most research tasks. Although arriving at the 'correct' answer is important, in this case emphasis will be placed on the process of arriving at, and justifying an answer, and helping students develop research and critical thinking skills.No solutions are provided for the end of unit activities.Unit 4Activity 1 1.(a)a=5b=23def multiply(): ans = a * b print(ans) returnmultiply()(b)def percToFrac(p): frac = p/100 return fracnum1=input("Enter a percentage value")num1=float(num1)num1=percToFrac(num1)print(num1)47625476250Activity 2Built-in6365356032500User-defined7086605905500Function definition7080256413500Function call21-24, 26, 27,29, 30(Only one needed)Activity 3A random number between 1 and 100 is printed each time. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download