Setting up environment for God sake
Guys, I will be blunt. I am not teaching 100s of available ways to install Python, Django and Cassandra and to develop applications around it. My development environment is just defined below and everything is practiced around it. Because there are many ways to do things using these languages I have chosen the favorites that made me think is good for beginners to start with.
This content has been updated and tested with the versions defined above. I have been periodically updating the content to match the pace of new releases.
- OS: UBUNTU 14.+ or 15.+
- Python: 2.7
- Level: Beginners Guide
- Type: Getting Started
- IDE: Brackets 1.5 (Experimenting with this one these days)
- Environment: VirtualEnv 13.1.2
- Framework: Django 1.8.6
Continue reading Setting up Python framework Django and no-sql database Cassandra for web development – Step by Step Tutorial
Here we will see some known and easy way of computing different mathematical and sequential things.
NOTE: This post is in continuation to the PART 1, however its not necessary to refer part I and you could take it as an independent post also.
Calculate the average of a series
# For an arbitrary sequence
def average(seq, total=0.0):
num = 0
for item in seq:
total += item
num += 1
return total / num
# For a sequence type such as a list or a tuple
return float(sum(seq)) / len(seq)
Continue reading Python with Mathematics and Sequences – PART 2 & tricky cool Integer calculations
Sequence is a particular order in which related things follow each other. Its fun and its very intuitive and so called logical. So lets start.
NOTE: Here we are not going to discuss what are different types of sequences are. We will see how we can achieve different sequences using Python.
In a Geometric Sequence each term is found by multiplying the previous term by a constant.
2, 4, 8, 16, 32, 64, 128, 256, …
This sequence has a factor of 2 between each number. Each term (except the first term) is found by multiplying the previous term by 2.
Continue reading Python with Mathematics and Sequences – PART 1
NOTE: This part is independent and doesn’t require PART-1 to be referred compulsorily, but its advisable 🙂
Slicing in Python is a mechanism to select a range of items from Sequence types like strings, list, tuple, etc.
>&gt;&gt; L = range(10)
[0, 2, 4, 6, 8]
mylist[::-1] # will reverse a list
# Reverse a string
>&gt;&gt; S = 'Abhilash'
Continue reading Guidelines for young python developers – PART 2 | Fun with happy coding
There are many things that we could consider under this subject. My motto is to make you aware with some of the important features, methods and pythonic stuff that you could refer from here and then do more Google for advanced learning. I will just give you a start.
NOTE: I consider you to be a Python developer. If you are just starting with Python, then I guess this post will become confusing for you. You could go through for quick reference on what to read next when you are done with your first Python tutorial.
Python is cool. Its trending and its obviously self-intuitive. Learning curve with python is awesome.
Continue reading Guidelines for young python developers – PART 1 | Things you should know being a programmer