Basic Python


A little bit history of Python:
Python was conceived in the late 1980s by Guido Van Rossum and was first released in 1991. Even though it came out earlier than Java(which was introduced in 1995) but it didn’t get much popularity until late the 2000s. In late 2000s Google started using Python heavily and started reinvesting on language and since then it has been more popular every day. Top universities like Harvard, MIT, Stanford have prioritized this language to be taught.

Why Python?

  • Python is easy to learn.
  • It is easier to follow along because of
  • English like structures. eg.  is used to display hello, world.
  • Python is dynamically typed. ie.
  • Python has many one-liners.                                                                   
  • So basically Python is easy to learn.

Where is Python used?

(Hint: Basically everywhere)

  1. Web Apps:
    • For web apps, Python has its own libraries like Flask, Pyramid and Django to build rapid web development.
    • Companies like DISQUIS, MOZILLA, PBS, NASA, REDDIT use Python for a web application.
  2. Scientific computing:
    • Its also used in different scientific computing.
    • Python has general libraries like NumPy, SciPy for basic scientific computations.
    • And there are specific libraries like EarthPy for earth sciences and AstroPy for Astronomy and sciences.
  3. Data Science and Machine Learning:
    • Companies like Facebook, Google, Amazon have a huge collection of our data and they market using those data.
    • For those data analytics, there is a huge number of Python libraries.
    • NumPy, SciPy, Matplotlib(Chart), Seaborn(Statistics), Plotly etc are hugely used for data analytics
    • Google has Tensorflow, Microsoft has Keras and Facebook uses PyTorch for different Machine Learning and Neural Network computation.
  4. And the list goes on……
    • Basically, Python is used everywhere
    • PyGame for Game Development and Tkinter of Python for the desktop app and there are a huge number of libraries written for GUI.


  • It is an interpreted language.
  • Source code—-> Interpreter—>Output
  • The interpreter interprets the language line by line and Python virtual machine runs through it and parses it and executes it.
  • Python has different versions. Python 2, Python 2.7 but we will be using Python 3.6 for our training.

Installation Guide

  1. Goto
  2. Download Python 3.6 version anaconda.
  3. Install it.
  4. Open Anaconda Navigator.
  5. Run Jupyter Notebook

Some differences in C and Python

After installation

  • After all, this installation Python can be simply used by calling Python command in command or terminal.
  • As we type along the Python interpreter interprets the code line by line.
  • But generally, we prefer using Jupiter Notebook because it has more advanced features and is more user-friendly than a command line interface.

Basic Data Types

As in any other programming language Python has a number of basic data types like

  • Integers
  •  Floats
  • Booleans
  • Strings

These are dynamically typed meaning we don’t explicitly need to define what type of variables are we handling within Python.


Integers and floats work in the same way as we expect from other languages

Unlike many other languages, Python does not have unary increment(x++) or decrement(x–) operators.


Python implements all the usual operators for Boolean logic but uses English words rather than symbols (&&, ||, etc.)


Python has great support for strings.

String also has a bunch of methods like


Python has many built-in containers like lists, tuples, dictionaries, sets.


  • Lists are like arrays in any other language.
  • But unlike in any other language, lists is resizable and can contain elements of different type.

List implementation

For more info about lists, documentation can be really helpful.
Slicing: In addition to accessing list elements one at a time, Python provides concise syntax to access sublists; this is known as slicing.







Agile Scrum Workshop

Entry Free: Pre registration Based
Entry form available at []
Max Capacity: 70 attendees
Day 1: Agile Scrum Workshop
Day 2: Knowledge Sharing on JAVA, SQL and QA Automation
(Event may shuffle any time)
Event Speakers Detail:
Prakash Aryal, CSM
Principal Engineer at Verscend Technologies Pvt. Ltd.
Deepak Vishwakarma, CSM
Principal Analyst at Verscend Technologies Pvt. Ltd.
Suraj Kumar Khattri, PMP®, CSM
Software Professional and Lecturer
Targeted Audience: IT professional/ students of Butwal periphery.
Faculty members are highly encouraged to attend.
Organised by: InfoxIT
In association with: AirNet pvt Ltd
Supported by: Butwal Chamber Of Commerce and Industries, Rupandehi, Crimson College Of Technology, Nepathya College, Tinau Technical College

Posted in CSR

Responsive Website Designing Contest

responsive website

InfoxIT is purely and only Software solution provider lead by CMM-IV experienced people.
We have an industry expertise in Quality website development, Mobile app development, Internal Software Developments and any emerging technologies.
We not only focus on technologies but processes.

Objective of Contest:
Create competitive, quality skill in the town.
Change the misconception of software development among people.
Convert creativity into actual deliverables.
Designing/ developing instead of customizing.

Further detail:
Responsive website designing contest
Exciting prize for winners !!!
Date: 11th March 2017
Venue: InfoxIT Office premises, Butwal-10, Sukkhanagar
Time: 9:45 am- 3:45pm Sharp
PSD will be provided, contestant have to design a responsive website <html><css><js> purely based on the PSD
Internet is allowed
Bring your own laptop with photo-shop CS-6 installed
Entry fee: 150 per head, Eligibility: Open
Refreshment will be provided !!!
Website will be judged by experts from software industry
Visit InfoxIT to reserve your seat by:10th March 2017

Fair Policy: None of the interns/ developers from InfoxIT will participate in the contest.
Winners will be given exciting prizes, in case of tie, prize will be distributed among winners.
Winners website will be hosted online and available for public view for 1 month.

Evaluation Parameters:Output, Code Quality (readability, maintainability, structuring)

Final decision: InfoxIT evaluation committee.

Up coming events: <Wordpres Desiging Contest>, <Web Application development Contest>, <Mobile Apps Development Contests>, <Workshop on Software Development Methodologies>
Date will finalize soon… keep Visiting our InfoxIT website and InfoxIT FB Page

Notice on Internship and Training cum Internship

InfoxIT offers Internship for 2017 Autumn season 
-Interested candidates are required to send their resume at late by 2nd of Sep.
-Candidates are required to appear in written exam followed by interview. Date will be communicated later.
-Only Qualified and shortlisted candidates will get opportunity for internship in Butwal/ Kathmandu.
-Candidates will get opportunity to work in live projects
Training cum Internship
InfoxIT offers Training cum Internship program 2017 Autumn season
We offer training cum internship in below technologies
A: Java technologies
B: Android 
C: Mobile technologies
D: Web technologies
E: Creative UI Designing
F: QA Automation
G: Oracle and DBA
For individual and group registration, please visit our office:
InfoxIT, Butwal-8, Sukkhangar, Near Oxford College., 071541846
Published date: 8/26/2017

Multilingual web app in angular 4

  1. Install Via npm npm install @ngx-translate/core —save and nom install @ngx-translate/ http-loader —save
  2. Import HttpModule, Http, TranslateModule, TranslateLoader and TranslateHttpLoader in module.ts

import { TranslateHttpLoader } from’@ngx-translate/http-loader’;

import { HttpModule, Http } from’@angular/http’;

import { TranslateLoader, TranslateModule } from’@ngx-translate/core’;

exportfunctionHttpLoaderFactory(http: Http) {




declarations: [



imports: [




loader: {



deps: [Http]




providers: [MdDatepickerIntl],

bootstrap: [AppComponent]


3.Create a constructor and translation function in app.component.ts

import { TranslateService } from’@ngx-translate/core’;

import { Component } from’@angular/core’;




styleUrls: [‘./app.component.css’]


exportclassAppComponent {

dir: string;

constructor(privatetranslate: TranslateService) {

translate.addLangs([‘en’, ‘ar’]);




changeLang(lang: string, direction: string ) {

this.dir = direction;




5. add translate button in app.component.html

<buttonclass=”btn btn-sm btn-danger btn-srch pull-right” (click)=”changeLang(‘en’, ‘ltr’)”>En</button>

<buttonclass=”btn btn-sm btn-danger btn-srch pull-right” (click)=”changeLang(‘ar’, ‘rtl’)”>عربى</button>

6.create i18n folder inside assets and create ar.json for arabic language and en.json for english language

code in ar.json


“search”: “بحث”,

“search-for-hotel”: “البحثعنفندق”


code in en.json


“search”: “Search”,

“search-for-hotel”: “Search for Hotel”


Copyright © 2016 InfoxIT Portal. All rights reserved.
Seo wordpress plugin by
Scroll To Top
Visit Us On FacebookVisit Us On Google PlusVisit Us On YoutubeCheck Our Feed