GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — PythonCourse/Section_01/assignment_04.py at master · JobReadyProgrammer/PythonCourse Expand file tree/ Copy pathassignment_04.pyMore file actions 63 lines (19 loc) · 565 Bytes / Copy pathassignment_04.pyFile metadata and controls63 lines (19 loc) · 565 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 # Assignment 4: """ Given 2 variables word1 and word2, write code to print the concatenation of the 2 words omitting the first_folder letter of the string saved in word1 and the second_folder letter of the string saved in word2. Example: --------------- word1 = "Vehicle" word2 = "Robot" result - ehicleRbot """ word1 = "Computer" word2 = "Truck" # Expected Result Printed: omputerTuck # Your code below: # Solution Below: # result = word1[1:] + word2[0:1] + word2[2:] # print(result) |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |