Tag Archives: tips
Python :: lcm

Returns the least common multiple of two or more numbers. Use the greatest common divisor (GCD) formula and the fact that lcm(x,y) = x * y / gcd(x,y) to determine the least common multiple. The GCD formula uses recursion. Uses reduce function from the inbuilt module functools. Continue reading Python :: lcm
CSS3 :: Rounded Corners

CSS3 Rounded corners are used to add special colored corner to body or text by using the border-radius property.A simple syntax of rounded corners is as follows − #rcorners7 { border-radius: 60px/15px; background: #FF0000; padding: 20px; width: 200px; height: 150px; Continue reading CSS3 :: Rounded Corners
Python :: keys_only

Function which accepts a dictionary of key value pairs and returns a new flat list of only the keys. Uses the .items() function with a for loop on the dictionary to track both the key and value and returns a Continue reading Python :: keys_only
CSS3 :: Tutorial

Cascading Style Sheets (CSS) is a style sheet language used for describing the look and formatting of a document written in a markup language. CSS3 is a latest standard of css earlier versions(CSS2). The main difference between css2 and css3 Continue reading CSS3 :: Tutorial