Posts

Showing posts from July, 2020

My Third Hackerrank Star

Image
Today I got my third Star on Hackerrank. I got this by solving a simple problem based on the tuple, which I solved with the help of google. I was not sure how to convert a list into a tuple. So only that part I searched. Here is the source code of the problem I solved today: 1)Tuple if __name__ == '__main__' : n = int ( input ()) integer_list = map ( int , input ().split()) my_number_list = [] i = 0 for integer in integer_list: my_number_list.append(integer) my_tuple = tuple (my_number_list) print ( hash (my_tuple)) 2)Find Runner up Score if __name__ == '__main__' : n = int ( input ()) arr = map ( int , input ().split()) list = [] for x in arr: # print(x) list.append(x) # print(list) i = 0 sorted_list = sorted (list , reverse = True ) # print(sorted_list) for t in sorted_list: if t == max (sorted_list): continue else : print (t) break #NOTE: Give more description to these things.

Got first Freecodecamp certificate.

Image
Today I earned the following certificate for completing a complete 300hrs of course of Responsive Web Design. I am providing the source code of the project that I build myself at the end of the program. H TML : <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> <main id="main">   <h1 id="title">     Mahatma Gandhi   </h1>   <h2> Father of India</h2>   <div id="img-div">            <center><img id="image"  alt="Tribute image" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/7a/Mahatma-Gandhi%2C_studio%2C_1931.jpg/220px-Mahatma-Gandhi%2C_studio%2C_1931.jpg" class="response">              </img></center>             <figcaption id="img-caption"> Mohandas Karamchand Gandhi 2 October 1869 – 30 January 1948) was an Indian lawyer, anti-colonial nationalist, and political ethicist,

My Programming Journey- The beginning

Image
This is the first Blog that I have ever written, not for me but for my future self This is me in this picture and I took this photo in Varanasi two year ago when I was preparing for IIT exams 😃. It was the eve of Chhat puja and I was just standing on the ghat of Holy river Ganga and was wondering is this really what I want? I was not happy during the preparation time because it was not something I was hoping to get. I just wanted to get to the peak just by trying out one time and if I don't get there I would be at some better place. I didn't know anything about the real world and its challenges. I was just indulged in my own world of Physics, Chemistry, and Maths. Let's talk more about 'this' time: I wasn't a so-called bright student. I was just an average student who just passed out from a local CBSE school with 76%. By looking at my score many told me that I shouldn't try since the success rate is below 1% to get into an IIT. I was in the line of million