dasari4kntr Posted October 10, 2020 Report Posted October 10, 2020 i will post my answer later... Quote
Patient31Covid19 Posted October 10, 2020 Report Posted October 10, 2020 google cheste geeksforgeeks la ostundhi Quote
Manikyam Posted October 10, 2020 Report Posted October 10, 2020 a= 2 b = 3 x = sum([a, b]) print(x) Quote
Hydrockers Posted October 10, 2020 Report Posted October 10, 2020 6 minutes ago, Manikyam said: a= 2 b = 3 x = sum([a, b]) print(x) With out using functions also possible aa? Eppudoo 14 years kinda chaduvukunna chaduvulu Mistake iathe nannu oggeyi Quote
dasari4kntr Posted October 10, 2020 Author Report Posted October 10, 2020 44 minutes ago, Patient31Covid19 said: use bit operators Correct ...but it will iterate more if input is huge numbers... Is it something possible in single line? Quote
Manikyam Posted October 10, 2020 Report Posted October 10, 2020 49 minutes ago, dasari4kntr said: Correct ...but it will iterate more if input is huge numbers... Is it something possible in single line? def sumlist(x): ln = [int(i) for i in list(x.split(","))] return sum(ln) x = "1,2,3,4,5" s = sumlist(x) print(s) 2 Quote
Manikyam Posted October 10, 2020 Report Posted October 10, 2020 1 hour ago, Hydrockers said: With out using functions also possible aa? Eppudoo 14 years kinda chaduvukunna chaduvulu Mistake iathe nannu oggeyi seyachu using bitwise Quote
dasari4kntr Posted October 10, 2020 Author Report Posted October 10, 2020 This is one alternate way i can think.... a+b= (a2-b2)/(a-b) Quote
Sucker Posted October 10, 2020 Report Posted October 10, 2020 Yendi vuncle Satday lu Funday lu kuda ila ee coding lu. Poragallani kuda intla ila ne saavaodthurra yendi. 1 Quote
dasari4kntr Posted October 11, 2020 Author Report Posted October 11, 2020 5 hours ago, Sucker said: Yendi vuncle Satday lu Funday lu kuda ila ee coding lu. Poragallani kuda intla ila ne saavaodthurra yendi. Quote
Manikyam Posted October 11, 2020 Report Posted October 11, 2020 5 hours ago, dasari4kntr said: This is one alternate way i can think.... a+b= (a2-b2)/(a-b) ne title ki ne solution ki emaina sambandam unda 1 Quote
dasari4kntr Posted October 11, 2020 Author Report Posted October 11, 2020 1 minute ago, Manikyam said: ne title ki ne solution ki emaina sambandam unda Write a small program adding two positive numbers with out using + or -*- Emi miss aindhi bro... Quote
Manikyam Posted October 11, 2020 Report Posted October 11, 2020 1 minute ago, dasari4kntr said: Emi miss aindhi bro... okay + - * anukunna + or * aa 1 Quote
Maryadaramanna Posted October 11, 2020 Report Posted October 11, 2020 5 hours ago, dasari4kntr said: This is one alternate way i can think.... a+b= (a2-b2)/(a-b) This is wrong. It holds true only when a isn’t equal to b. you’re limiting the value of the function. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.