Question: X Homepage - Intro to Programmi x > Introduction to Programming X + 2120/book.html#_earsketch_asg 5 2 EarSketch Asg. 5.2 String Slicing Use string slicing to
X Homepage - Intro to Programmi x > Introduction to Programming X + 2120/book.html#_earsketch_asg 5 2 EarSketch Asg. 5.2 String Slicing Use string slicing to rearrange the beat string in the code below. Divide the original beat into three slices, slice contains the first 6 characters, slice contains the next 6, and slicec contains the rest of the string to the end. Make nenBeat by combining the slices B, C, then A. 1 from earsketch import * 3 4 inito setTempo (120) 6 7 # Original beat string beatString = "0+-00-00-0--000+" 9 # Write your string slicing code here 10 sliceA = ???? 11 sliceB = ???? 12 slicec = ???? 13 14 # Make your new beat 15 newBeat = ???? 17 makeBeat (OS_COWBELLO1, 1, 1, newBeat) 18 19 ' finish Virus & threat protection Threats found Windows Defender Antivirus for threats. Get details 0.00/0:02
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
