New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Week 02

by: Taylor Beddow
Taylor Beddow
Dixie State College

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

week 2 notes, talking about defining main and adding up numbers.
Bob Nielson
Class Notes
Intro to Computer Science; Computer Science
25 ?




Popular in CS-1400-01

Popular in Computer Programming

This 2 page Class Notes was uploaded by Taylor Beddow on Sunday September 25, 2016. The Class Notes belongs to 1400 at Dixie State College taught by Bob Nielson in Fall 2016. Since its upload, it has received 7 views. For similar materials see CS-1400-01 in Computer Programming at Dixie State College.

Similar to 1400 at Dixie State College

Popular in Computer Programming


Reviews for Week 02


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 09/25/16
CS-1400 8/29/16 Setting up a section of memory called main when writing def main () Then it is setting up a certain memory with Distance, Speed, Time, and TimeMachine. Repeat  For I in range(100): Print (“I will not cheat!”) # add up all the numbers from 1 – 100 # - Taylor Beddow Def main(): # get the users guess Guess=input(“What is the sum of the numbers from 1-100 ?”) Guess=int(guess) # calculate the answer Total=0 For num in range(101): Total = total + num # compare the answer If guess == total: Print(“You got it Isaac”) Else: Print(“You missed it by a mile.”) Print(“The correct answer is” , total) Main() Def main(): # Print welcome message Print(“Welcome to star trek”) Print() # print the users name Name = input(“What is your name ?”) # Print greeting Captain=”Kirk” If name == Captain Print(“Welcome Captain Kirk”) Command = input(What is your command ?”) If command == “Warp”: Print(“We are out of here”) Else: Print(“I did not get that”) Else: Print(“Welcome cabin boy”, name) Command = input(“Are you going to get the forward deck”) If command == “yes”: Print(“You have been promoted.”) Else: Print(“Now I see why you are a cabin boy.”) # Print good bye message Print(“Thanks for playing star trek.”)


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Allison Fischer University of Alabama

"I signed up to be an Elite Notetaker with 2 of my sorority sisters this semester. We just posted our notes weekly and were each making over $600 per month. I LOVE StudySoup!"

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.