[Python Programming Basics to Advanced]: Assignment Operator | Lab 02 P-2

preview_player
Показать описание
This Python programming playlist is designed to take beginners with zero programming experience to an expert level. The course covers installation, basic syntax, practical scenarios, and efficient logic building. The course material includes PDF handouts, review questions, and covers a wide range of topics, from data types to advanced functions like Lambda and Recursive functions, Generators, and JSON data parsing.

In this video we will study about Assignment Operator. The operator = is used for this.
We will also study about Augmented Assignment and Multiple Assignment.

Complete Playlist:

If you have the basic programming knowledge and interested to learn Object-Oriented Programming in Python, check out this playlist:

Lab Manual 02 can be downloaded from here:

Review Questions:
1- Define a variable say x and set it to some integer e.g. 592. Then use print function to display the Unit digit of x, which is 2. If value of x changes to 5238, the same program must display 8.
#PythonProgramming #python #pythontutorial
Рекомендации по теме
Комментарии
Автор

a=int(input("Enter Your Number")
b=a%10
print(b)

fourcloversan
Автор

2019-MC-65
Q 1: x=592
unit= x%10
print(unit)
x1=5238
x=x1
unit=x%10
print(unit)

abdurrehmansarwar
Автор

a=int(input('enter some integer: '))
print('unit digit of input number is:', a%10)

haseebahmad
Автор

x=532
print(x%10)
# by changing values of x#
x=538
print(x%10)

danishali
Автор

Integer=int(input("Enter an Integer:"))
print(f"Unit digit of {Integer} is {Integer%10}")

MuhammadAhmad-dshu
Автор

x=52
unit=x%10
print(unit)
OR for any No.
x=eval(input("Enter the number:"))
print("The Unit digit of x is:", x%10)

asmaabhatti
Автор

x=eval(input(''Enter the Number:'')
y=x%10
print(''The unit digit of 'x' is='', y)

AsadAli-owie
Автор

number=int(input("Enter the Input="))
z=number%10
print(z)

AliHamza-zwvt
Автор

x=592
unit=592%10
print(unit)
y=5238
unit_digit=y%10
print(unit_digit)

areebaazhar
Автор

number=eval(input("Enter the number=")
print("The unit digit is", number%10)

AliIrfan-soxf
Автор

x=int(input('put some integer: '))
print('unit digit of input number is:', x%10)

SafiUllah-kgku
Автор

x=592
y=x%10
print("Unit digit of x is:", y)

maeshaijaz
Автор

x=eval(input("Enter the number:"))
print("The Unit digit of input number is:", x%10)

arslanrafiq
Автор

2019-MC-41

x=592
unit=(x%10)
print(unit)
z=5238
unit=(z%10)
print(unit)

zoniseithzoniseith
Автор

x=592
y=x%10
print('the unit digit of x is=', y)

abdulrehmankhalid
Автор

a=10
b=4
c=a%b
print ('4%10')
why its error?

MuhammadQasim-erwb
Автор

x=592
unit=x%10
print(unit)

x=5238
unit=x%10
print(unit)

noorulhuda
Автор

Reg. no. :2018MC11
x=5928
print(x%10)

osamafazal
Автор

x = 592
y = (x%10)
print(y)

x = 5928
y = (x%10)
print(y)

haris
Автор

2019mc76
x=592
y=x%10
print("Unit digit of x is:", y)

mukarmarashid