This program performs the vector calculation of the given vectors in the program.
Open the program file and run.
The program will calculate the sum, scalar product and the dot product of the given vectors in the program
. VEOXADDITID. .3
D1 Browse Network
.U buntu Start Rage
Devkota360 [Running] 7 Oracle VM VirtualBox
File Machine View I
Bigyan Devkota #Assignment 3
https:/www.linux.com/news/best-linux-desktop-environments-2016 - This link discusses about
the KDEs Plasma Desktop as the most advanced desktop environment.
Bigyan Devkota #Assignment 1
1. Yes, I read the course syllabus thoroughly and carefully. Yes, I understand the course policy on
cheating. I read thoroughly what are the consequences if we cheat like failing the course,
suspension and mi
Description: The program will calculate the sum, scalar product and the dot
product of the given vectors in the program.
_author_ = "Bigyan Devkota"
_date_ = "08/29/2016"
def addVectors(v1, v2):
newVector = 
if len(v1) != len(v2):
print(" error ")
Bigyan Devkota #Assignment 2
1. Seamless mode in the virtual box is the process of installing two Operating systems in one desktop;
one host operating system and another is guest operating system. These two operating system makes
Functions & Scope
Activities / Practice
Assume a function named isPrime has already been
written. It has one formal parameter (a positive
integer), and returns True if that integer is prime.
Otherwise, it returns False.
Use the function to compute an
sum = 0
ct = 1
for ct in range(10):
sum += ct
print ("Sum: ", sum, " Count: ", ct)
Change it into a
WHILE loop and run
use a sentinel value
loop to sum the
user's entries until
Fundamentals of Python:
From First Programs Through Data
Searching, Sorting, and Complexity
After completing this chapter, you will be able to:
Measure the performance of an algorithm by
obtaining running times a
Strings In Python
Strings & Characters
No data type
Special Characters: Escape Sequences
\n newline or line break or EOL
\r move cursor to 1
Introduction to Programming
Marty Stepp (firstname.lastname@example.org)
Lecturer, Computer Science & Engineering
University of Washington
Some influential ones:
science / engineering
logic and AI