The idea behind designing this blog is to share the knowledge. Knowledge is the only wealth which can't be stolen or destroyed.Unless it is utilized in a proper way.
Labels-CCNA,MCITP,LINUX,MATHEMATICS,EXCHANGE SERVER,HARDWARE,NETWORKING,APTITUDE,GENERAL KNOWLEDGE and JAVA
Find the even and odd number in an array,take the average of both and add them
Get link
Facebook
X
Pinterest
Email
Other Apps
Find the even and odd number in an array,take the average of both and add them
TRIGONOMETRY (RATIOS, IDENTITIES AND HEIGHTS AND DISTANCES) Trigonometry deals with the study of triangles, the measurement of their sides, angles and the various relations which exist between them. Angle: An angle, in trigonometry, is formed by the rotation of a ray in a plane around the end point. In the above figure, OA is the initial position and OB is the final position of the ray. Positive and Negative Angles: If the rotation of the ray OA about 'O' is in the anticlockwise direction, then the angle AOB is positive and if the ray rotates in the clockwise direction, the angle made is considered as negative. Quadrants: The concept of quadrants was discussed in the chapter Co-ordinate Geometry in detail. We now summarize this concept diagrammatically. Systems of Measurement of Angles: Initially, we understand the division of a right angle. 1 right angle=90^o (ninety degrees) 1^o =60' (Sixty minutes) 1'=60" (Sixty seconds) ...
Complete the following series 225,224,____,222,221 a)220 b)223 c)219 d)226 Answer: b) 2. 17,19,23,29,31,37,______ a)41 b)43 c)40 d)42 Answer: If you look at the above series they are all prime numbers, next series will be 41 3.225,196,169,____,121,100,81 a)156 b)144 c)136 d)125 Answer: above series can be written as 15^2,14^2,13^2,____,11^2,10^2,9^2. The missing series is 12^2=144. 4.12,14,15,16,18,20 a)22 b)25 c)21 ...
Print Exact Slice Of String You need to take string input and two other numbers which will be the start and end point of the slice and you need to print that slice of string to the stdout. Input Format You will be taking a string as an input from stdin and two integers one on each line. Constraints 1 Output Format You need to print the slice of the string to the stdout. Sample TestCase 1 Input Hello Techgig 1 4 Output ello import sys def main(): # Write code here word=raw_input() one=input() two=input() obj=slice(one,two+1) sys.stdout.write(str(word[obj])) main()
Comments
Post a Comment