Coding task · Python course · Module 1: Python Basics

String Slicing

Extract a substring

Task

Cut the first 4 characters from the word 'Python' (slice [:4]), store them in the variable first_four and print them: