Python

Learn Python – Free Interactive Python Tutorial

Welcome free interactive Python tutorial for people who want to learn Python, fast. Welcome to the thesoft interactive Python tutorial. Whether you are an experienced programmer or not, this website is intended for everyone who wishes to learn the Python programming language. You are welcome to join our group on Facebook for questions, discussions and updates. Just click on the chapter you wish to begin from, and follow the instructions. Good luck! Learn the Basics Hello, World!Variables and TypesListsBasic OperatorsString FormattingBasic String OperationsConditionsLoopsFunctionsClasses and ObjectsDictionariesModules and...

Read more...

Python – How to split a String

Few examples to show you how to split a String into a List in Python. 1. Split by whitespace By default, split() takes whitespace as the delimiter. alphabet = "a b c d e f g" data = alphabet.split() #split string into a list for temp in data: print temp Output a b c d e f g 2. Split + maxsplit Split by first 2 whitespace only. alphabet = "a b c d e f g" data = alphabet.split(" ",2) #maxsplit for temp in data: print temp Output a b c d e f g 3. Split...

Read more...