Skip to header Skip to main navigation Skip to main content Skip to footer

User account menu

  • Log in
Home
COPA
Computer Operator and Programming Assistant

Main navigation

  • Home
    • COPA Assessment Criteria
    • COPA Job Role
    • Course Information
  • Books
  • Question Paper
  • Syllabus

Control Statements, String Manipulation, Lists, Tuple, sets

Breadcrumb

  • Home
  • Programming language (Python)
  • Control Statements, String Manipulation, Lists, Tuple, sets

Network

ITI Trade Subject

  • ITI Electrician
  • ITI Fitter
  • ITI COPA
  • ITI Welder
  • ITI Mechanic
  • ITI Electronics
  • ITI Wireman
  • ITI Draughtsman Civil & Mech
  • ITI Refrigeration & Air Conditioning
  • ITI Turner
  • ITI Plumber
  • ITI Machinist
  • ITI Cosmetology
  • ITI Sewing
  • ITI Surveyor
By Anand | 11:55 AM IST, Fri March 13, 2026

Control Statements, String Manipulation, Lists, Tuple and Sets in Python

Python is one of the most popular programming languages used for developing software applications, data analysis systems, automation tools, and web applications. One of the main reasons for Python’s popularity is its simple syntax and powerful features. Python provides several programming structures that allow developers to control program execution and manipulate data efficiently.

Among the most important concepts in Python programming are control statements, string manipulation, and data collection types such as lists, tuples, and sets. These concepts help programmers write flexible programs that can process data and perform complex tasks.

For students studying the ITI COPA (Computer Operator and Programming Assistant) trade, understanding these topics is essential because they form the foundation of Python programming and software development.

Control Statements in Python

Control statements are used to control the flow of program execution. They allow programmers to make decisions and repeat certain tasks based on conditions.

Python mainly provides three types of control statements:

  • Conditional Statements
  • Looping Statements
  • Loop Control Statements

Conditional Statements

Conditional statements allow the program to execute different blocks of code depending on a condition.

Example:

age = 20

if age >= 18:
    print("Eligible to vote")

In this example, the program checks whether the age is greater than or equal to 18.

Looping Statements

Looping statements allow a program to repeat a block of code multiple times.

Example of a for loop:

for i in range(5):
    print(i)

This loop prints numbers from 0 to 4.

Loop Control Statements

Loop control statements modify the behavior of loops.

  • break – stops the loop
  • continue – skips the current iteration
  • pass – acts as a placeholder

String Manipulation in Python

A string is a sequence of characters used to represent text. Python provides several methods that allow programmers to manipulate strings.

Strings can be created using single quotes or double quotes.

Example:

text = "Python Programming"

Common String Operations

Python supports several operations on strings.

  • Concatenation
  • Indexing
  • Slicing
  • Length calculation

String Concatenation

Concatenation means joining two strings together.

first = "Hello"
second = "World"

print(first + " " + second)

String Indexing

Indexing allows accessing characters at specific positions.

word = "Python"
print(word[0])

The output will be P.

String Slicing

Slicing extracts a portion of a string.

word = "Python"
print(word[1:4])

Output: yth

Common String Methods

  • upper()
  • lower()
  • replace()
  • split()
  • strip()

Example:

text = "python"
print(text.upper())

Lists in Python

A list is a collection of ordered elements that can store multiple values in a single variable. Lists are one of the most commonly used data structures in Python.

Lists are created using square brackets.

numbers = [1, 2, 3, 4, 5]

Features of Lists

  • Ordered collection
  • Mutable (can be modified)
  • Allows duplicate elements
  • Can store different data types

List Operations

Python provides several operations for working with lists.

  • append()
  • remove()
  • insert()
  • sort()

Example:

fruits = ["apple", "banana"]
fruits.append("mango")
print(fruits)

Tuples in Python

A tuple is similar to a list but it is immutable, which means its elements cannot be changed after creation.

Tuples are created using parentheses.

coordinates = (10, 20)

Features of Tuples

  • Ordered collection
  • Immutable
  • Allows duplicate values
  • Faster than lists

Example:

person = ("Rahul", 20, "Student")
print(person)

Sets in Python

A set is a collection of unique elements. Sets are unordered and do not allow duplicate values.

Sets are created using curly braces.

colors = {"red", "green", "blue"}

Features of Sets

  • Unordered collection
  • Unique elements only
  • Mutable
  • No duplicate values

Set Operations

Python supports several mathematical operations on sets.

  • Union
  • Intersection
  • Difference

Example:

A = {1,2,3}
B = {3,4,5}

print(A.union(B))

Comparison Between List, Tuple and Set

FeatureListTupleSet
OrderOrderedOrderedUnordered
MutableYesNoYes
DuplicatesAllowedAllowedNot allowed

Importance for ITI COPA Students

For students studying the ITI COPA trade, understanding control statements, string manipulation, and Python data structures is extremely important.

These concepts allow students to create programs that process data, perform calculations, and handle real-world programming tasks efficiently.

Knowledge of lists, tuples, and sets is also essential for learning advanced topics such as data analysis, file handling, and database programming.

Conclusion

Control statements help programmers control the flow of program execution, while string manipulation allows programs to process text data effectively.

Lists, tuples, and sets are powerful data structures that allow Python programs to store and manage collections of data efficiently.

By mastering these concepts, ITI COPA students can build a strong foundation in Python programming and develop skills required for modern software development and information technology careers.

Book traversal links for Control Statements, String Manipulation, Lists, Tuple, sets

  • ‹ Conditional Statements
  • Up
  • Dictionaries in Python ›
  • Printer-friendly version

Article

Types of Files in Computer System
Safety Signs and Symbols Used in Workplace
Safety Rules While Using Computer
Can I start my own business after doing ITI in COPA trade?
Scope in Government Jobs after Doing ITI in COPA

Books

Introduction to Programming in Java
Programming language (Python)
Cloud Computing
Cyber Security
Advanced Excel Concepts
Database Concepts
Communicating in a Connected World
Using Spread Sheet Application
Designing Static Web Pages
Internet Concepts
Configuring and Using Networks
Database Management
Image editing, Creating presentations & Using Open Office
Using Word Processing Software
Familiarization with DOS CLI & Linux Operating Systems.
🖥️ Computer Hardware Basics and Software Installation
🖥️ Computer Components and Windows Operating System
Cyber Security
E Commerce
Smart Accounting
Introduction to VBA, Features and Applications
Introduction to JavaScript 🧠💻
Web Design Concepts
Internet Concepts 🌐
Networking Concepts 🌐
🗄️ Database Management Systems (DBMS)
Power Point Presentations
📊 Spreadsheet Application – Trade Theory for COPA
📝 Word Processing – Trade Theory for COPA
🖥️ Introduction to DOS Command Line Interface & Linux Operating System – Trade Theory for COPA
🖥️ Computer Hardware Basics and Software Installation – Trade Theory for COPA
Introduction to Computers and Windows Operating System

Question Paper

Hindi

COPA 2024 – प्रश्न पत्र सेट 11
COPA 2024 – प्रश्न पत्र सेट 1
COPA 2024 – प्रश्न पत्र सेट 2
COPA 2024 – प्रश्न पत्र सेट 3
COPA 2024 – प्रश्न पत्र सेट 4
COPA 2024 – प्रश्न पत्र सेट 5
COPA 2024 – प्रश्न पत्र सेट 6
COPA 2024 – प्रश्न पत्र सेट 7
COPA 2024 – प्रश्न पत्र सेट 8
COPA 2024 – प्रश्न पत्र सेट 9
COPA 2024 – प्रश्न पत्र सेट 10

English

ITI COPA 2023 Question Paper
ITI COPA 2023 Question Paper – Set 2
ITI COPA 2023 Question Paper – Set 3
ITI COPA 2023 Question Paper – Set 4

Common Subject

  • Engineering Drawing
  • Employability Skills
  • Workshop Calculation Science

Directory

  • Industrial Training Institutes
  • Engineering College
  • Medical College

Knowledge Bank

  • ITI Syllabus
  • Tools

Copyright © 2026 Company Name - All rights reserved

Developed and Designed by Alaa Haddad at Flash Web Center, LLC