Home > Python

Python sample programs – Part 1

  1. Calculate the Average of Numbers in a Given List [crayon-62b89b711e88b309439402/] 2. Exchange the Values of Two Numbers Without Using a Temporary Variable [crayon-62b89b711e896802792897/] 3. Reverse a Given Number [crayon-62b89b711e898089370451/] 4. Check Number is Positive or Negative [crayon-62b89b711e89b545597979/] 5. Take in the Marks of 5 Subjects and Display the Grade [crayon-62b89b711e8a0955889618/] 6. Print all Numbers in a Range Divisible by

This Article is TAGGED in . Read more

Sample script in robot framework

Create new file in project with .robot extension.  Robot file contains below sections:  Setting  Variables  Keywords  Test Cases  In setting section all imports can be defined. In variables section, Test data should be defined. In Keywords section, All operations can be defined by calling predefined keywords. In Test Cases section, All operations can be performed by calling user defined keywords.     Here is the

This Article is TAGGED in , , . Read more

Lists in Python

List is the most commonly used collection in Python. It is used to store list of variables which may have different data types. It is also useful to implement stacks and queues data structures. Variables can be dynamically stored using Lists. Following are some features of list 1. Lists are written with

This Article is TAGGED in , . Read more