python practicals unit 1 part- 1 || bca gujarat university || bca sem - 5 || your code coach

Опубликовано: 23 Июль 2026
на канале: Your Code Coach
1,599
44

practicals list :

1. Write a program to swap two numbers without taking a
temporary variable.
2. Write a program to display sum of two complex numbers.
3. Write a program to create a byte type array, read, modify,
and display the elements of the array
4. Create a sequence of numbers using range datatype to
display 1 to 30, with an increment of 2.
5. Write a program to find out and display the common and
the non common elements in the list using membership
operators


theory :

Python has the following data types built-in by default,in these categories:

Text Type: str
Numeric Types: int, float, complex
Sequence Types: list, tuple, range
Mapping Type: dict
Set Types: set, frozenset
Boolean Type: bool
Binary Types: bytes, bytearray, memoryview
None Type: NoneType

The bytes() function returns a bytes object.

bytes(source, encoding, errors)

source = used to initialize an array of byte’s object
encoding = used only when the source is a string
errors = the actions to be undertaken, if the encoding conversion fails of the string source
Note – If the source is a string, then we must compulsorily pass the other 2 parameters.
If not,then the Python interpreter will return TypeError.

The range() function returns a sequence of numbers between the give range.

Syntax: range(start, stop, step)

Parameter :
start: [ optional ] start value of the sequence
stop: next value after the end value of the sequence
step: [ optional ] integer value, denoting the difference between any two numbers in the
sequence


Python divides the operators in the following groups:

Arithmetic operators
Assignment operators
Comparison operators
Logical operators
Identity operators
Membership operators
Bitwise operators

Membership operators:- Membership operators are used to test if a sequence is presented
in an object.
1. in : Returns True if a sequence with the specified value is present in the object.
2. not in : Returns True if a sequence with the specified value is not present in the
object.

Identity Operators:- Identity operators are used to compare the objects, not if they are
equal, but if they are actually the same object, with the same memory location.

1. is : Returns True if both variables are the same object.
2. is not : Returns True if both variables are not the same object.






#pythonpracticalunit1 #pythonbca #pythonpractice #statistics #meanmedianmode #mean #median #mode #gujaratuniversity #easycodingtutorial #codinglife #basicprogramming #pythonprogramming #pythontutorial #pythonforbeginners #pythonprojects #bcagujaratuniversity #coading #learningitcourse #yourcodecoach #clanguagecourse #python #php #phptutorials #phpforbeginners #jquery #jquerytutorial #shellprograming #csharp #dotnet #mvc #mindtoheart #learn #learning #code #coder #coders #programming #programmer #devloper #website #webapplication #Programming #bca #mca #btech #mtech #engeenering
#education #educational #educationaltoys #educationmatters #educationiskey #educationfirst #educationforall #educationispower #educationquotes #educationpositive #educationtoys #educationispower #educationquotes #educationpositive #educationtoys #educationabroad #educationsystem #educationisthekey #educationalbooks #educationusa #educationalbooksph #educationaltoy #educationcanine #educationconsultant #educationalgames#education #parents #students #teachersofinstagram#gujaratuniversity #easycodingtutorial #codinglife #basicprogramming #pythonprogramming #pythontutorial #pythonforbeginners #pythonprojects #bcagujaratuniversity #coading #learningitcourse #yourcodecoach #yoursupporter #bcapracticalexam #programinglanguage
#javascript #javascriptengineer #java #javatutorial #javaforbeginners #javascriptforbeginners #javascript_tutorial #javaprogramming #clanguage #clanguageforbeginners #clanguagebasics #clanguagecourse #python #php #phptutorials #phpforbeginners #jquery #jquerytutorial #shellprograming #csharp #dotnet #mvc #mindtoheart #learn #learning #code #coder #coders #programming #programmer #devloper #website #webapplication #Programming #bca #mca #btech #mtech #engeenering
#education #educational #educationaltoys #educationmatters #educationiskey #educationfirst #educationforall #educationispower #educationquotes #educationpositive #educationtoys #educationabroad #educationsystem #educationisthekey #educationalbooks #educationusa #educationalbooksph #educationaltoy #educationcanine #educationconsultant #educationalgames #education #highereducation #educationaltoys #educationmatters #educationiskey #educationfirst #educationforall #educationispower #educationquotes #educationpositive #educationtoys #educationabroad #educationsystem #educationisthekey #educationalbooks #educationusa #educationalbooksph #educationaltoy #educationcanine #educationconsultant #educationalgames#education #parents #students #teachersofinstagram