P_13 Coding Exercises for Beginners in Python | Exercise #3 | Program to add digits of a number

preview_player
Показать описание


*********************************************
Connect & Contact Me:

*********************************************

See Complete Playlists:

#python #programming #ProgramToAddDigitsOfaNumber #jennyslectures
Рекомендации по теме
Комментарии
Автор

First time without any copying I successfully done coding and got result 🎉because of you jenny mam🌸

Butterfly_k
Автор

value= input('enter a two digit vale: ')

narasimhamurty
Автор

Your lectures are really amazing!

a = input("Enter a two digit num a : ")
b = input("Enter a two digit num b : ")
c = int(a[0])+int(a[1])
d = int(b[0])+int(b[1])
print(c)
print(d)

Mythili-ezhn
Автор

n=input("enter any two digits:")
a= int(n[0])
b=int(n[1])
print(a+b)
Mam, don't stop ur series we are eagerly waiting for next updates on python ..
Because, your explanation was mind blowing...

ramjisaladi
Автор

x=(input("enter a two digit number:"))
a=int(x[0])
b=int(x[1])
print(a+b)

sivasetti
Автор

#program to find the sum of digits of a two digit number

num=input("enter a two digit number=")
sum=int(num[0])+int(num[1])




OUT PUT

enter a two digit number= 28
2+8=10



Thank you so much mam 🙏🏻❤️

Kshirabdi.Tanaya
Автор

I am a software developer but still I watch your videos to brush up my basic concepts everyday

saivashistdasyapu
Автор

r1=input("enter the two digit number")
Sum=int(r1[0])+int(r1[1])
Print(sum)
Tq mam for teaching in a good way❤

kotinone
Автор

such a great teacher !!! so far I have tried classroom training as well for learning python, but now only I am able to follow along and write some code, like the way you explain its marvelous !! anyone could understand !! Tones of Thanks and gratitude to you dear Jenny

anjalibhamre
Автор

6:45
num1=input("Enter first number : ")
sum=int(num1) %10
sum=sum+int(num1) //10
print("Sum of digits = "+str(sum))

konthamvinay
Автор

number=input("enter a two digits number: ")

first_digit=number[0]
second_digit=number[1]

sum=int(first_digit) + int(second_digit)
print(sum)



number2=input("enter a three digits number: ")

first_digit=number2[0]
second_digit=number2[1]
third_digit=number2[2]



I love your lessons very much :) I really appreciate for this tutuorial.

yusufklcsln
Автор

num=int(input("enter the number= "))
lastDig=num%10
firstDig=int(num/10)
print(firstDig+lastDig)
# i have written the above code mam
#and i did not thought about this logic😎 🔥

Shariquehussain
Автор

number=input("Enter a two-digit number of your wish")
first_digit=number[0]
second_digit=number[1]

print(sum)
i actually like to type clearly, step by step.

tejaschandrashekar
Автор

Thank you Jenny for helping me learn Python.

I watched episodes 1-13 and was successful in writing my first Python program that calculates rates between LBP and USD

skalvino
Автор

# Exercise
b_data=input("Please enter a b_data number :" )
d_data=input("Please enter a b_data number :" )
print (int(b_data) + int(d_data))

Thank for wonderful explaination my first code went in one go without error and copying thanks a lot.

mkarMirkar
Автор

a = (input("enter the digital number"))
n = len(a)
c = 0
for i in range(n):
if i <= n:
b = int(a[i])
c += b
i += 1
print(c)

fellowkesava
Автор

digits = input("Enter two digits: ")
First_digit = digits[0]
Second_digit = digits[1]
sum = int(First_digit) + int(Second_digit)
print(sum)

Bhowlu
Автор

user_input = input("Enter any two number ")

first_number = user_input[0]
second_number = user_input[1]

print(int(first_number) + int(second_number))

devSackey
Автор

Am done my code successfully thank you so much
no = input("enter ur no:")
length = len(no)
print("length=", length)
i=0
sum=0
for i in range(0, length):
sum = sum + int(no[i])

print("sum = ", sum)

nishasiddu
Автор

a=input("enter the two digits :")
b=Print(a[0])
c=Print(b[1])
Print(int(b)+int(c))

Unknown-irt