Skip to main content

Contact Me

Comments

Popular posts from this blog

What Is Top 10 Headphones In 2020 really All About?

If you are looking best Headphones in  2020 under low  budget but you don't know which headphone will be the best for yours , then I suggest to you 10 best headphones, which will be the best for you. Hi this is Santanu From Tech Pathsala . You are reading Tech Pathsala blog. Without  wasting more time lets get started. 1.  boAt Rockerz 510 Bluetooth Headphone with Thumping Bass, Up to 10H Playtime, Dual Connectivity Modes, Easy Access Controls and Ergonomic Design (Raging Red) Product description: Now just stop worrying about Wires hanging from here and  there. Pair with any Bluetooth device, connect and play.  Dead Batteries can kill your vibe. boAt Rockerz 510 is designed to play Up to 10 hours. Don't just be loud, be loud and clear. We assure you have not heard such powerful bass and vocal clarity from a wireless headphone with Extra Comfort Ear cups.  The boAt Super Bass Rockerz510 Wireless Headphones will  make your listening experience perso...

Programming Assignment-1: Holes

Let us assume paper as the plane and a letter as a curve on the plane, then each letter divides the plane into regions. For example letters "A", "D", "O", "P", "R" divide the plane into two regions so we say these letters each have one hole. Similarly, letter "B" has two holes and letters such as "C", "E", "F", "K" have no holes. We say that the number of holes in the text is equal to the total number of holes in the letters of the text. Write a program to determine how many holes are in a given text . Input Format: The only line contains a non-empty text composed only of uppercase letters of English alphabet. Output Format: output a single line containing the number of holes in the corresponding text. Example-1 Input: DRINKEATCODE Output: 5 Explanation: D R A O D has one hole hence total number of holes in the text is 5. Source Code ip=input() c=0 H1=[...

How to sum of two arrays in Python3:

Input Format: The first line of the input contains a number N representing the number of elements in array A. The second line of the input contains N numbers separated by a space. (after the last elements, there is no space) Output Format: Print the resultant array elements separated by a space. (no space after the last element) Example: Input: 4 2 5 3 1 Output: 3883 Explanation: Here array A is [1,2,3,4] and reverse of this array is [4,3,2,1] and hence the resultant array is [5,5,5,5]  SOURCE CODE: import math size=int(input()) list1=[] for x in input().split():   num=int(x)   list1=list1+[num]   for i in range(math.ceil(size/2)):     list1[i]=list1[size-1-i]=list1[i]+list1[size-1-i]     for i in range(size-1):       print(list1[i],end=" ")       print(list1[size-1],end="")