Best post on string datatype in python – 1

String datatype in Python

String Datatype in Python Python supports many simple and compound datatypes. Few data types like list, dictionary are mutable and others like string datatype, tuple are immutable. Mutable datatypes means changes can be done and are reflected in same variable. Immutable datatypes means changes can be done but not in same variable. String is collection … Read more

Python program to show use of user defined functions

1.Write a function that takes a character (i.e. a string of length 1) and returns True if it is a vowel, False otherwise. 2.Define a function that computes the length of a given list or string. 3.Define a procedure histogram() that takes a list of integers and prints a histogram to the screen. For example, … Read more