Bridging the Gap
By the end of Week 1 Part 1 I,m now used to coding with print,input, variables and quotation marks. Part 2 started to introduce mathematics. First I learnt about the basic maths symbols such as ,addition subtraction ,division and to the power of. With python you can do math with words as long as put them in variables or use quotations ( print("ab"*5)) .Lastly it taught me how to use len counts how long string is. Bridging the Gap wanted a program that counts the number of planks you need. The program I wrote involved printing len(number)-2 so it counted the input which is under the variable number and - 2 to discard the start and end walls.
No comments:
Post a Comment