Python noob having a little trouble with strings

randyliu17 at gmail.com randyliu17 at gmail.com
Thu Oct 26 22:25:09 EDT 2017


If s1 = "Welcome students", what is the output when you print the following:

1. s4 = 3 * s1

2. s1[3 : 6]

3. 'W' in s1

4. S1[-1]

5. S1[:-1]

Any help would be great, thanks!



More information about the Python-list mailing list