Saturday 5 October 2013

Thursday 3 October 2013

PUNJAB UNIVERSITY BEATS IIT IN GLOBAL RANKING

                  PUNJAB UNIVERSITY RANKED HIGHER THAN IITs


NEW DELHI: Although no Indian institution of higher learning is yet to make it to the top 200 in the Times Higher Education's (THE) World University Rankings list 2013-14, one new entrant — Panjab University— is closer to that elite group. Panjab University is the highest ranked Indian institution clubbed in the group of universities ranked between 226-250 ranks.

Monday 30 September 2013

PYTHON WEEK 7 SOLUTIONS

                               WEEK 7 SOLUTIONS



1.                                     d['c'] = 3           (in case of {'a': 1, 'c': 3, 'b': 2}  )



2.                                     d['b'] = 3           (in case of {'a': 1, 'b': 3}  )


3.                                     d['a'].append(2)        ,         d['a'].insert(1, 2)
                                       d['a'].sort()


WEEK 5 SOLUTIONS

                    PYTHON SOLUTION OF WEEK 5 ASSIGNMENT 



1.                  len([1, 2, 3]) == len(['a', 'b', 'c']) ,     len('mom') in [1, 2, 3]

2.                  secret('123')

3.                  Return a list containing every third item from L starting at index 0.

4.                  i = i + 2

5.                  27004383 (odd)

PYTHON WRITTEN ANSWERS

                                  BOX ANSWERS


Question 2: Consider this code: 
def mystery(s):
    """ (str) -> bool
    """
    matches = 0
    for i in range(len(s) // 2):
        if s[i] == s[len(s) - 1 - i]: # <-- How many times is this line reached?
            matches = matches + 1
    
    return matches == (len(s) // 2)

mystery('civil')
Trace the function call mystery('civil') using the Python Visualizer. How many times is the line marked above reached?
 
Answer= 2

Question 6

Consider this code:
values = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
Using values and indexing with non-negative indices, write an expression that evaluates to 5. Do not use addition, subtraction, or parentheses ( ) (brackets [ ] are required).
 
Answer: values[1][1]

Question 7

Consider this code:
breakfast = [['French', 'toast'], ['blueberry', 'pancakes'], ['scrambled', 'eggs']]
Using breakfast and indexing with only negative indices, write an expression that evaluates to 'blueberry'. Do not use addition, subtraction, or parentheses ( ) (brackets[ ] are required).
 
Answer: breakfast [-2][-2]

Sunday 29 September 2013

COMEDY NIGHTS ON THE SETS OF BIGG BOSS


                      Kapil To Resume Its Shooting On The Sets Of Bigg Boss


After the loss of Rs.20Cr due to the fire on the sets of Comedy Nights with Kapil colors channel was searching for the new sets to shoot further episodes of "Comedy Nights With Kapil" and finally its has decided to resume it on the sets of Bigg Boss 7.

Thursday 26 September 2013

DOLLAR vs RUPEE

              RUPEE TILL THE END OF THE MONTH

Rupee jumps to 61.931 per Dollar and is seen below 60 by the end of the month. Experts hope that Rupee will rise and will end below 60 by the end of the month. After the sudden fall down of rupee in August it reached its lowest value of 68.89 per dollar on Aug 28. 

In September, there was a improve in the Rupee value, and now there is a full chance that rupee will close below 60 at the end of September. Today will be the crucial day for Indian Market as for the rest of two days the Indian market will be closed. 

Rupee has fallen down by 0.911 as compared to 61.02 in the morning. Experts hope that till the end of the day Rupee will be below 61 mark.