Search

maxichimaximind

Endless Openmindedness

Hydra – Bad Words – Medium

The Hidden Cause of a Fracturing World

Source: Hydra – Bad Words – Medium

Baby steps – Python programming

Its Been a while since I dropped an original post here. Lately, I’ve been sharing tech related articles am interested in as opposed to actually writing one. During this period, I’ve been trying to build up my Backend programming skills. it hasn’t been an easy ride so far. Started off with Php and the laravel framework but I immediately realized that am no good at Php. The framework was amazing to use but I just found it hard to comprehend the Php bit. (A solid understanding of Php is actually a prerequisite for using the framework.)

The time spent trying to study Php helped me realize that I needed to strengthen my core computer science skills. So, I’ve decided to focus on fundamental programming concepts such as Object oriented programming, algorithms, regular expressions, classes, methods etc. Once am comfortable with these fundamental programming concepts, I can get back to working with Backend frameworks like laravel and Django.

On my quest to rebuild these fundamental programming skills, i have picked a keen interest in the python programming language. Unlike PHP, i find it easy to understand the language and the concepts I need to brush up on. So, moving forward, I will use this blog to document my progress on the python programming language. I will share the exercise questions and my solutions to those questions as i encounter them in the various textbooks I’ve decided to read.

I hope this will be the beginning of a very exciting journey into python programming.

CURRENT BOOK AM READING: PYTHON PROGRAMMING (a Free book available here)

Exercises on Lists

Q1. Use a list comprehension to construct the list [’ab’, ’ac’, ’ad’, ’bb’, ’bc’, ’bd’].

item = [x + y for x in 'ab' for y in 'bcd']
print(item)
['ab', 'ac', 'ad', 'bb', 'bc', 'bd']

Q2. Use a slice on the above list to construct the list [’ab’, ’ad’, ’bc’].

item2 = item[::2]
print(item2)
['ab', 'ad', 'bc']

Q3. Use a list comprehension to construct the list [’1a’, ’2a’, ’3a’, ’4a’].

item3 = [x + y for x in '1234' for y in 'a']
print(item3)
['1a', '2a', '3a', '4a']

Q4. Simultaneously remove the element ’2a’ from the above list and print it.

print(item3.pop(1))
2a

Q5. Copy the above list and add ’2a’ back into the list such that the original is still missing it.

print('item3 popped: ', item3)
item3 popped: ['1a', '3a', '4a']
item4 = item3[:]
print('item4 as copy of item3 popped: ', item4)
item4 as copy of item3 popped: ['1a', '3a', '4a']
item4.append('2a')
print('item4 with new item added: ', item4)
item4 with new item added: ['1a', '3a', '4a', '2a']
print('item3 still popped: ', item3)
item3 still popped: ['1a', '3a', '4a']

Q6. Use a list comprehension to construct the list [’abe’, ’abf ’, ’ace’, ’acf ’, ’ade’, ’bbe’, ’bbf ’, ’bce’, ’bcf ’, ’bde’, ’bdf ’]

item5 = [x+y+z for x in 'ab' for y in 'bcd' for z in 'ef']
print('item5: ', item5)
['abe', 'abf', 'ace', 'acf', 'ade', 'adf', 'bbe', 'bbf', 'bce', 'bcf', 'bde', 'bdf']

Okey Chima

8 simple steps to better icon design | Webdesigner Depot

Icons are everywhere. From app icons on home screens to graphic representations that lead users through a design, icon design is a big deal. There’s a fine art to good icon design. Not only does the element have to render recognizably at the smallest of sizes, good vector-based icons can be scaled to use in oversized proportions as well. Some designers are even using icon-style images for dominant visuals. So where do you start? Here’s a guide to designing a better icon in eight (somewhat) simple steps. 1) Start with a grid Good icon design starts with a solid foundation. A simple square block grid is all you need to start sketching an icon. Use the same gridded paper you worked with in grade school to create icon sketches with pencil and paper or start with a square pixel grid in design software. You should probably design on a square canvas, as most icons end up needing to fit in in square spaces. (This includes everything from icons for apps to icons in website designs or for

Source: 8 simple steps to better icon design | Webdesigner Depot

The Coming Revolution in Email Design · An A List Apart Article

The rich web is coming to email. Jason Rodriguez gives us the lay of the land and sweeps us into the future.

Source: The Coming Revolution in Email Design · An A List Apart Article

The 100% correct way to do CSS breakpoints

For the next minute or so, I want you to forget about CSS. Forget about web development. Forget about digital user interfaces.

Source: The 100% correct way to do CSS breakpoints

What’s New and What’s Changed in Bootstrap 4 –

Annarita Tranfici shares an overview of the changes you really need to know about in the upcoming Bootstrap 4 release & what’s different from Bootstrap 3.

Source: What’s New and What’s Changed in Bootstrap 4 –

Responsive Images in CSS | CSS-Tricks

The term “responsive images” has come to mean “responsive images in HTML”, in other words, the srcset and sizes attribute for and the element. But how do t

Source: Responsive Images in CSS | CSS-Tricks

A Nerd’s Guide to Color on the Web | CSS-Tricks

There are a lot of ways to work with color on the web. I think it’s helpful to understand the mechanics behind what you’re using, and color is no exception

Source: A Nerd’s Guide to Color on the Web | CSS-Tricks

CSS Shapes 101 · An A List Apart Article

The new CSS Shapes specification has the potential to change the way you think about arranging content on a webpage. (Hint: think outside the rectangles!) Sara Soueidan walks us through the different ways to use this property, with results ranging from simple elegance to eye-popping.

Source: CSS Shapes 101 · An A List Apart Article

Blog at WordPress.com.

Up ↑

%d bloggers like this: