What is Flow chart and how to use different symbols with examples

By // No comments:
Flow chart:-Flow chart is a graphical representation of algorithms to solve the step by step problems in sequential manner.It uses different kinds of Boxes and arrows to represent the process.
There are following symbols are used in flow chart as given below:-
3

What is Algorithms and its Characteristics with examples

By // 1 comment:
Algorithm:-
  • An algorithm is a finite lists of instructions in sequence to solve the computation problems.
  • An algorithm is a step by step of finite number of process to solve the problems.You can write the algorithms in any language which is understandable to the persons (programmers)
  • In Real life,an algorithm is a recipe for any cooking dish.
Characteristics of Algorithms:-
There are following characteristics of any algorithms as given below.
3

string concepts in python part 5

By // No comments:
There are some operational functions for the strings as given below:-
1.) split() :-The split() function is used to split(breaks up) at a specified separator and returns a list of strings. 
Syntax
string.split(separator,maxsplit)
The split function takes maximum two parameters as given below:-
  • Separator:-This is an optional parameter.If separator is specified ,the string split at this specified separator.If separator is not specified ,the string is split at white space (space,newline,coma etc.) separator.
  • maxsplit:-This is also an optional parameter.The maxsplit is used to define maximum number of splits. The default value of max split is -1 ,means no limit of number of splits.
3

String concepts in python Part 4

By // No comments:
There are some search and replace functions operations in strings as given below:-
1.) find():- The find() function returns the index value of the string where the substring is found between start index and end index.start index and end index is optional parameter.

  • If substring is present in given string then this function returns the index of the first occurrence of the substring.
  • If the substring is not exist inside the string then it returns -1 index
3

string concepts in python part 3

By // No comments:
String operations in python:
There are many Built-in string function available in python language.Here We will learn content test functions with examples as given below:-
1.) isalpha() :-It returns True ,if all characters in the string are alphabets otherwise False. The alphabets can be lower case and upper case both.This function doesn't take any parameters.If string contains a white space or any numeric value then this function returns False.
Syntax:-
String.isalpha()
3

Strings Concepts in Python Part 2

By // No comments:
String operators in Python:-There are some operators used to perform some basic operations on strings.
  • + (plus) operator) :-it is known as concatenation operator.it is used to concatenate two or more strings in python language.
e.g.
str1="Welcome to"
str2="MNT LAB"
str3="msdotnet"
str=str1+str2
print("Concatenate the two string: ",str)
print("Concatenate the two string: ",str1+' '+str3)
Output of Above Python program
Concatenate the two string:  Welcome toMNT LAB
Concatenate the two string:  Welcome to msdotnet
3

Strings concepts in python part 1

By // No comments:
What is Python strings?
  • Python string is a collection of Unicode characters.
  • String is a popular data type of python language.
  • Python allow us to create the string by using single quotes,double quotes or triple quotes.
  • Strings can be created by enclosing the the character or the sequence of characters in the quotes(single,double or triple ) in python language.
We can create a string in python in following way as given below:-
3
Powered by Blogger.