This document contains Python code that performs various operations on lists and strings, including printing parts of lists and strings, modifying lists by adding/removing/replacing elements, sorting lists, and performing basic math operations on user input numbers. It demonstrates common list and string methods in Python like upper(), index(), replace(), extend(), append(), insert(), remove(), pop(), count(), sort(), and conversions between int and float data types.
This document contains Python code that performs various operations on lists and strings, including printing parts of lists and strings, modifying lists by adding/removing/replacing elements, sorting lists, and performing basic math operations on user input numbers. It demonstrates common list and string methods in Python like upper(), index(), replace(), extend(), append(), insert(), remove(), pop(), count(), sort(), and conversions between int and float data types.
This document contains Python code that performs various operations on lists and strings, including printing parts of lists and strings, modifying lists by adding/removing/replacing elements, sorting lists, and performing basic math operations on user input numbers. It demonstrates common list and string methods in Python like upper(), index(), replace(), extend(), append(), insert(), remove(), pop(), count(), sort(), and conversions between int and float data types.
This document contains Python code that performs various operations on lists and strings, including printing parts of lists and strings, modifying lists by adding/removing/replacing elements, sorting lists, and performing basic math operations on user input numbers. It demonstrates common list and string methods in Python like upper(), index(), replace(), extend(), append(), insert(), remove(), pop(), count(), sort(), and conversions between int and float data types.