Write A Python Program To Print Last Digit In A Number

preview_player
Показать описание
Hello Programmers, Welcome to my channel.

In this video you will learn about how to Write A Python Program To Print Last Digit In A Number

Python Scripts
======================

Python Functions Solved
==========================

Python Programs Solved
============================

Code
=============================
number = int(input("Enter a Number : "))
last_digit = number % 10
print(f"Last Digit of a Number {number} : {last_digit}")

Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners
Рекомендации по теме
Комментарии
Автор

What if I want the next number of the last, I mean 1234 I wanna print the number 3 not 4 how can I do that?

abdulaziz-nu
Автор

if i want like number = 1234 and the output will be =34

SayanManna