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

  Рет қаралды 154,429

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

Пікірлер: 785
@Butterfly_2k
@Butterfly_2k Жыл бұрын
First time without any copying I successfully done coding and got result 🎉because of you jenny mam🌸
@MohanMohan-o2g
@MohanMohan-o2g 6 ай бұрын
💌
@narasimhamurty4837
@narasimhamurty4837 2 жыл бұрын
value= input('enter a two digit vale: ') print(int(value[0])+int(value[1]))
@ramjisaladi4628
@ramjisaladi4628 2 жыл бұрын
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...
@limitess9539
@limitess9539 Жыл бұрын
a=int(input("Enter a two digit number: ")) if a>9 and a
@elee_chimbuoyim
@elee_chimbuoyim Жыл бұрын
@@limitess9539wow....>>>
@elee_chimbuoyim
@elee_chimbuoyim Жыл бұрын
I am yet to understand this part...
@pmmodi3583
@pmmodi3583 Жыл бұрын
nice beta
@sivasetti4603
@sivasetti4603 2 жыл бұрын
x=(input("enter a two digit number:")) a=int(x[0]) b=int(x[1]) print(a+b)
@Mythili-ez6hn
@Mythili-ez6hn Жыл бұрын
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)
@Bharath_r99
@Bharath_r99 3 ай бұрын
@yusufklcsln
@yusufklcsln Жыл бұрын
number=input("enter a two digits number: ") first_digit=number[0] second_digit=number[1] sum=int(first_digit) + int(second_digit) print(sum) print(int(first_digit)+int(second_digit)) number2=input("enter a three digits number: ") first_digit=number2[0] second_digit=number2[1] third_digit=number2[2] print(int(first_digit)+int(second_digit)+int(third_digit)) I love your lessons very much :) I really appreciate for this tutuorial.
@saivashistdasyapu4374
@saivashistdasyapu4374 2 жыл бұрын
I am a software developer but still I watch your videos to brush up my basic concepts everyday
@Berlin_da_bodysoda
@Berlin_da_bodysoda 2 жыл бұрын
Olu
@harshrathod50
@harshrathod50 2 жыл бұрын
I am also one, and I don't believe what you wrote above. 😂 Men will be men. 😂
@saivashistdasyapu4374
@saivashistdasyapu4374 2 жыл бұрын
@@harshrathod50 🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣
@mubasshirkhan1370
@mubasshirkhan1370 2 жыл бұрын
We all know why are you here🎊😂😂
@HGCSNishchayHH
@HGCSNishchayHH 2 жыл бұрын
Sir please give me some information about your company
@Unknown-i7r2t
@Unknown-i7r2t Жыл бұрын
a=input("enter the two digits :") b=Print(a[0]) c=Print(b[1]) Print(int(b)+int(c))
@su5182
@su5182 Жыл бұрын
a=input("enter a two digit no.: ") sum= int(a[0]) + int(a[1]) print(sum)
@0mkarMirkar
@0mkarMirkar 2 ай бұрын
# 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.
@anwarhossain-nq8em
@anwarhossain-nq8em Жыл бұрын
var_1 = input("Enter only two digit number: ") a = int(var_1[0]) b = int(var_1[1]) sum = a+b print(sum)
@arpandey5261
@arpandey5261 5 ай бұрын
6:45 num = input("Enter a two digits number: ") Num = int(num[0]) + int(num[1]) print("sum of the digits is: " , Num)
@Enjoy-life8263
@Enjoy-life8263 3 ай бұрын
a=input("enter the number:") print("sum is ",int(a[0])+int(a[1]))
@Bhowlu
@Bhowlu 2 жыл бұрын
digits = input("Enter two digits: ") First_digit = digits[0] Second_digit = digits[1] sum = int(First_digit) + int(Second_digit) print(sum)
@JinnahClaus
@JinnahClaus 7 ай бұрын
1:01 talent of a real teacher she understand the pain students feel while learning putting herself in the place of a students
@nishasiddu5487
@nishasiddu5487 2 ай бұрын
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)
@tejaschandrashekar5874
@tejaschandrashekar5874 Жыл бұрын
number=input("Enter a two-digit number of your wish") first_digit=number[0] second_digit=number[1] sum=int(first_digit)+int(second_digit) print(sum) i actually like to type clearly, step by step.
@obujh_mon_8758
@obujh_mon_8758 Жыл бұрын
Number=input('digit number') Print(int(number[0])+int (number[1]))
@Kshirabdi.Tanaya
@Kshirabdi.Tanaya 2 жыл бұрын
#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]) print(num[0]+"+"+num[1]+"="+str(sum)) OUT PUT -------------- enter a two digit number= 28 2+8=10 Thank you so much mam 🙏🏻❤️
@devSackey
@devSackey Жыл бұрын
user_input = input("Enter any two number ") first_number = user_input[0] second_number = user_input[1] print(int(first_number) + int(second_number))
@syedsohel9701
@syedsohel9701 2 жыл бұрын
In 144p and 720p you were looking same ......❣️❣️ KZbin may gone mad against your beauty 😍
@__TusharSharma
@__TusharSharma Жыл бұрын
pdhle bsdk
@Harisht120
@Harisht120 Жыл бұрын
Dai thangamani 😮
@LordSarcasticVlogger
@LordSarcasticVlogger Жыл бұрын
Itni bhi nahi hain 😏😏
@Elleesan
@Elleesan 6 ай бұрын
@@Harisht120 vanakom
@atanupatra8016
@atanupatra8016 5 ай бұрын
Padh le yaar😂😂
@srikaryenugula
@srikaryenugula Жыл бұрын
My code is: number=input("enter any number") print(int(number[0])+int(number[1]))
@rushendrarushendra9511
@rushendrarushendra9511 4 ай бұрын
first_number=input("Enter the the first numer of two digits "); second_number=input("Enter the the second numer of two digits "); print(int(first_number[0])+int(first_number[1])) print(int(second_number[0])+int(second_number[1]))
@skalvino
@skalvino 6 ай бұрын
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
@konthamvinay9054
@konthamvinay9054 2 ай бұрын
6:45 num1=input("Enter first number : ") sum=int(num1) %10 sum=sum+int(num1) //10 print("Sum of digits = "+str(sum))
@ebubechukwuuchechukwu6018
@ebubechukwuuchechukwu6018 3 ай бұрын
_2_digit_number = input("Enter a 2 digit number : ") print(int(_2_digit_number[0] + int(_2_digit_number[1]))
@pavan1470
@pavan1470 3 ай бұрын
X=input () a=int(x[0]) b=int(x[1]) Print (a+b)
@wassup2007
@wassup2007 Ай бұрын
6:40 number =(input('enter number')) sum = int(number[0]) + int(number[1]) print (sum)
@Shariquehussain186
@Shariquehussain186 9 ай бұрын
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😎 🔥
@KaushalyaAmararathne
@KaushalyaAmararathne 7 ай бұрын
value = input('enter value:') new_value = int(value) length = len(value) # Getting the length of the string representation of the number x = 0 total = 0 while x < length: # Adding the digit at index x to the total total += int(value[x]) x += 1 # Incrementing x to move to the next digit print(total)
@kathirvel1396
@kathirvel1396 2 жыл бұрын
num = input("enter the two digit number:") print(int(num[0]) + int(num[1]))
@syedahmed6639
@syedahmed6639 2 жыл бұрын
Thanks!
@sai_sanju_222
@sai_sanju_222 Жыл бұрын
a=input("enter any two digit number ") print(int(a[0])+int(a[1] ))
@anurag1052
@anurag1052 Жыл бұрын
num1 = input("Enter the number 1:") sum=int(num1[0])+int(num1[1]) print(sum) Thanks !!!
@nidalnasir4911
@nidalnasir4911 Жыл бұрын
a=input("enter the numbers") adding1=a[0] adding2=a[1] adding3=a[2] b=int(adding1)+int(adding2)+int(adding3) print(b)
@ganeshgiramkar9807
@ganeshgiramkar9807 Жыл бұрын
digit=input("Enter two digit no here: " a = int(digit[0]) b = int(digit[1]) c = a+b print(c) print(type(c))
@sairaghavendra3530
@sairaghavendra3530 Жыл бұрын
number_1=input("enter the value of two digits") a=number_1[0] b=number_1[1] sum=int(a) + int(b) print(sum)
@msrikrishna425
@msrikrishna425 5 ай бұрын
number=input('give a number[only two digits]') ADD=int(number[0])+int(number[1]) print("the addition of the given number ="+str(ADD)) thank you mam without ur help i did it🤩
@dhirajsonawane5387
@dhirajsonawane5387 2 жыл бұрын
a=int(input("Enter a first number:")) b=int(input("Enter a second number:")) c=a+b Print("Addition=", c)
@official_atharva_8022
@official_atharva_8022 2 жыл бұрын
Are u learning from yash aradhye
@dhirajsonawane5387
@dhirajsonawane5387 2 жыл бұрын
@@official_atharva_8022 No
@recklezzzrohith4139
@recklezzzrohith4139 2 жыл бұрын
number = input("enter a two digit number = ") first_digit = number[0] second_digit = number[1] sum = (int(first_digit) + int(second_digit)) print(sum)
@ಮನೆಪಾಠ-ಯ5ಶ
@ಮನೆಪಾಠ-ಯ5ಶ 4 ай бұрын
in previous video , this video is little tricky or difficult but it's fully easy after learning from your previous video...! thanks Jenny...!
@anujjoshi2398
@anujjoshi2398 2 жыл бұрын
a=input('Enter the number:') sum=0 for i in a: sum=sum+int(i) print('Sum of digit is:',sum)
@MehediHassan-sp2tm
@MehediHassan-sp2tm 2 жыл бұрын
i am searching on youtube Python tutorial by jenny's lecture finally i got your tutorial please upload python tutorial regularly thank you and i love you
@thatsme8529
@thatsme8529 Жыл бұрын
a=input("number ?") b=len(a) c=0 for x in range(b): c=int (a[x])+c print(c)
@ramaraju1469
@ramaraju1469 2 жыл бұрын
My code a=input("enter a 2 digit number:") print((int(a[0])+int(a[1])))
@MOHITGUPTA-e9q
@MOHITGUPTA-e9q Жыл бұрын
a=input("enter the first number ") c=int(a[0]) d=int(a[1]) print(c+d)
@tagoracreations8077
@tagoracreations8077 8 ай бұрын
Number = input("enter a 2 digit number") Print(int(Number[0])+int(Number[1]))
@SofiaSyed-cu4lr
@SofiaSyed-cu4lr 6 ай бұрын
a=input("Enter two digit number: ) print(int(a[0])+(int(a[1])) first tym mam i got result Only coz of u mam Thank u soo much mam🤗💝
@mhmanu5788
@mhmanu5788 Жыл бұрын
a=input('enter first number: ') b=input('enter the second number') c=a[0] d=a[1] e=b[0] f=b[1] print(int(c)+int(d)+int(e)+int(f))
@omarismail-qt7os
@omarismail-qt7os Жыл бұрын
print("welcome to the addition program") a=input("please add two numbers that you want to addition: ") sum = int(a[0]) + int(a[1]) print("the result of the addition is: ",sum) print("thanks for using the addition program")
@kunalJadhav956
@kunalJadhav956 3 күн бұрын
1.a=input("enter a two digit number:") 2.print(int(a[1])+int(a[0]))
@priya-we2hg
@priya-we2hg 2 жыл бұрын
"पुन प्रयास करने से कभी मत घबराओ क्योंकि इस बार शुरुआत........ शुन्य से नहीं... अनुभव से होगी"..... !! जय हिंद दोस्तों 🌹🌹🙏🙏🙏🌹🌹
@kavyaandpareesworld
@kavyaandpareesworld 2 жыл бұрын
i have written this code a = input ( " enter a 2 digit number ") print ( int (a[0]) + int (a[1]) ) i like how you teach mam
@Arya_ayami
@Arya_ayami 8 ай бұрын
a=input("enter a number") print(int(a[0])+int(a[1]))
@ravikhss7530
@ravikhss7530 Жыл бұрын
#value 1 value_1=str(input('enter a number; ')) Sum 1-value_1[0] Sum_2-value_1[1] print(int(sum_1)+int (sum_2)) #value 2 value_2=str(input('enter a number; ')) Sum 3-value_2[0] sum 4-value_2[1] print (int(sum_3)+int (sum_4))
@revanthadaboina124adaboina4
@revanthadaboina124adaboina4 2 жыл бұрын
for two digits number=(input("enter a number: ")) num1=int(number[0]) num2=int(number[1]) sum=num1+num2 print(sum) --------------------------------------------------------------- using loops number=input("entr a number:") a=0 for i in number: a=a+int(i) print(a)
@lakshmivaddi4395
@lakshmivaddi4395 8 ай бұрын
a=input("enter a two digit number=") b=int(a[0])+int(a[1]) print("sum of two digit number is "+ str(b))
@nikhileswarkalvakolanu2261
@nikhileswarkalvakolanu2261 2 жыл бұрын
A=input('enter two digit value') b=int(A[0])+int(A[1]) print(b)
@lavetisireesha6083
@lavetisireesha6083 Жыл бұрын
for any digit number n=input("enter the value") sum = 0 for i in range(0,len(n)): sum=sum+int(n[i]) print(sum)
@eswarkumar7366
@eswarkumar7366 Жыл бұрын
a=input("enter your number") b=a[0] c=a[1] print(int(b)+int(c))
@thanmayicheekolu9911
@thanmayicheekolu9911 Жыл бұрын
A=input(“enter the two number :”) B= int(A[0])+int(B[1]) Print(B)
@SasidharanSasi-np4qp
@SasidharanSasi-np4qp 8 ай бұрын
num=input ("add two numbers ") a=num[0] b=num [1] print (int(a) + int(b))
@SreelakshmiJayakumar-un7xf
@SreelakshmiJayakumar-un7xf 6 ай бұрын
a=input("enter the number;") b=a[0] c=a[1] print(int(b)+int(c
@Student_of_bca
@Student_of_bca 3 ай бұрын
w=float(input('enter your weight in kgs ')) h=float(input ("enter your height in meters ")) bmi= w / (h**2) print(bmi)
@sreeram5513
@sreeram5513 Жыл бұрын
number=input("enter a 2 digit number") value=int(number[0])+int(number[1]) Print(value)
@pratyush_reddy
@pratyush_reddy Жыл бұрын
number=input("enter the two digit number: ") Sum= int(number)[0]+int(number)[1] Print(sum)
@shajjadhossan4309
@shajjadhossan4309 2 жыл бұрын
F=input('enter a two digit number:') sum1=int(F[0])+int(F[1]) print(sum1)
@aamirnajar9798
@aamirnajar9798 2 жыл бұрын
a=input("enter a two digit number") sum= int(a[0]) + int(a[1]) print (sum)
@samuelbk4393
@samuelbk4393 Ай бұрын
a = input("enter a two digit number: ") b = a[0] print("first digit: ", b) c = a[1] print("second digit: ", c) sum_1 = int(b) + int(c) print("the sum of the digit is = ", sum_1)
@Aniket-px3lg
@Aniket-px3lg Жыл бұрын
digit=input("enter 2 no. digit") print(int(digit[0])+int(digit[1]))😊
@AnirudhKumar-l7r
@AnirudhKumar-l7r Жыл бұрын
a = input('enter a number:') b = int(a[0])+int(a[1]) print(b)
@sreeramknss
@sreeramknss 2 жыл бұрын
n=input("Enter the number:") s=0 for i in range(0,len(n)): s=s+int(n[i]) print(s)
@MedishettyManikantaGandhi
@MedishettyManikantaGandhi Жыл бұрын
num=input('Enter a 5 digit number') sum=int(num[0])+int(num[1])+int(num[2])+int(num[3])+int(num[4]) print(sum)
@aqmkabir4240
@aqmkabir4240 2 жыл бұрын
Mam, Hope you are fine and everything is going well at your end. We are waiting for your next video regarding Python. Thank you
@abhijitmandal4420
@abhijitmandal4420 5 ай бұрын
num = input("Enter a two-digit number: ") num1 = int(num[0]) num2 = int(num[1]) # Adding the two numbers su = num1 + num2 # Printing values print("{0}".format(su))
@harishgajaraj2129
@harishgajaraj2129 2 жыл бұрын
a = input("Enter the no:") b = a[0] c = a[1] sum = int(b) + int(c) print(sum)
@pavankalyanankam2605
@pavankalyanankam2605 2 ай бұрын
num=input("Enter the two digit number: ") for char in num: result=int(num[0])+int(num[1]) print(result)
@srujansathola167
@srujansathola167 9 ай бұрын
x = input("Enter first number") Sum = int(x[0]) + int(x[1]) print(Sum) It was simple and short
@rashmibakkolla1050
@rashmibakkolla1050 Жыл бұрын
number = input("enter a two digit number: ") first_digit_number = number[0] second_digit_number = number[1] sum = int(first_digit_number) + int(second_digit_number) print(sum)
@korrapatimuralikrishna
@korrapatimuralikrishna 2 жыл бұрын
number = input("Enter Your Number : ") number = str(number) length = len(number) sum = 0 for i in range(length): temp = number[i] sum += int(temp) print (sum)
@rakeshchandupatla3484
@rakeshchandupatla3484 Жыл бұрын
first_number = input("Enter the two number:") adding_two_digit = int(first_number[0]) ** int(first_number[1]) print(adding_two_digit)
@sathiyamoorthiselvavel9228
@sathiyamoorthiselvavel9228 11 ай бұрын
first=input("Enter first number") sum=int(first[0])+int(first[1])+int(first[2]) print(sum) i/p=123 o/p=6
@musiczone5020
@musiczone5020 Жыл бұрын
number= input ("Enter two digit number :") num1=input("enter the first digit number:") num2=input("enter the second digit number:") Sum=int(num1)+int (num2) print(num)
@anishkumarmishra9620
@anishkumarmishra9620 7 ай бұрын
num = int(input("enter the number : ")) sum = 0 while num > 0: digit = int(num % 10) sum = sum + digit num = num / 10 print("the sum of digits : ",sum)
@vaibhavsinhbihola1
@vaibhavsinhbihola1 2 жыл бұрын
num = int(input("number: ")) num1 = num%10 num2 = (num-num1)//10 print(num1+num2)
@JyothsnaNetinti-z7l
@JyothsnaNetinti-z7l 17 күн бұрын
a=input("enter two digit number") print("addition of two numbers is" + str(int(a[0])+int(a[1])))
@VAMSIKINNERA
@VAMSIKINNERA Ай бұрын
num=input("enter a three digits number: ") dig_1 = num[0] dig_2 = num[1] dig_3 = num[2] sum=int(dig_1)+ int(dig_2) + int(dig_3) print(sum)
@le316suresh
@le316suresh Жыл бұрын
num = input("enter three digit number: ") sum=int(num[0])+int(num[1])+int(num[2]) print(sum) 🙌
@sudeepsudeep8571
@sudeepsudeep8571 Жыл бұрын
N=input ("Enter a number: ") a= int(N[0]) + int(N[1]) print (a)
@Bunchuza-d1t
@Bunchuza-d1t 5 ай бұрын
number = input("enter a two digit number: ") first = number[0] second = number[1] sum = int(first) + int(second) print(sum) # thought there was something wrong i was doing busy typing a 1 digit and hitting enter, but eventually realised i need to digits before hitting enter hope some one else doesnt for for that, very good none the less.
@aahatharatharaalaruchulu
@aahatharatharaalaruchulu 2 жыл бұрын
aa= input('value of the number = ') sum= int(aa[0])+int(aa[1]) print('total of the digits is ' + str(sum))
@pragathi068
@pragathi068 2 жыл бұрын
num=input ("enter a number") sum_of_digits=0 for I in range(len(num)): sum_of_digits=sum_of_digits+int(num[I]) print(sum_of_digits)
@sangitgamer8259
@sangitgamer8259 Жыл бұрын
first_num = input("Enter a first number:") sec_num = input("Enter a second number:") first_num = int(first_num) sec_num = int(sec_num) print(first_num + sec_num)
@reganakandwanaho1223
@reganakandwanaho1223 2 жыл бұрын
#AKANDWANAHO REGAN 🌍 a = input ('enter a 2 digit number ') X=a[0] Y=a[1] print (X) print (Y) print (type(X)) print (type (Y)) print (int(X) +int(Y))
@adityanalawade3093
@adityanalawade3093 Жыл бұрын
number=input("Input a two digit number:") Firstnumber=number[0] Secondnumber=number[1] sum=int(Firstnumber)+int(Secondnumber) print(sum)
@Pachhubirasal
@Pachhubirasal 9 ай бұрын
a=input("enter a two digit number:") b=int(a[0]) c=int(a[1]) print(b+c)
@sonygoudmuthyam5442
@sonygoudmuthyam5442 2 жыл бұрын
x=input("enter the number") sum=0 for i in range(len(x)): sum = sum + int(x[i]) print(sum)
@wasiullah3290
@wasiullah3290 11 ай бұрын
num_1=input('enter two digits ') num_2=input('enter two digits ') sum_1=int(num_1[0])+int(num_1[1]) sum_2=int(num_2[0])+int(num_2[1]) print(sum_1) print(sum_2)
@aj4309
@aj4309 Жыл бұрын
num=int(input("enter a two digt number")) a=num[0] b=num[1] c=a+b print(c)
@Sanjay_Rangaraj
@Sanjay_Rangaraj Жыл бұрын
N = input ("Enter the number: ") d= 0 for i in N : g=int(i) d+=g Print(d)
P_14 Operators in Python | Arithmetic Operators | Python Tutorials for Beginners
15:01
P_12 Type Checking, Type Error and Type Conversion | Type Casting in Python
15:02
Jenny's Lectures CS IT
Рет қаралды 195 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 15 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 10 МЛН
P_11 Data Types in Python | Python Tutorials for Beginners
23:54
Jenny's Lectures CS IT
Рет қаралды 271 М.
Operators in Python | Logical Operators | Python Tutorials for Beginners #lec16
9:57
Identity Operators in Python | Python Tutorials for Beginners #lec18
20:27
Jenny's Lectures CS IT
Рет қаралды 125 М.
Tuples in Python | Python Tutorials for Beginners #lec40
20:56
Jenny's Lectures CS IT
Рет қаралды 111 М.
While Loop in Python | Python Tutorials for Beginners #lec50
26:51
Jenny's Lectures CS IT
Рет қаралды 90 М.
round() function in Python | Python Tutorials for Beginners #lec21
20:34
Jenny's Lectures CS IT
Рет қаралды 116 М.
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 598 М.