Coder Social home page Coder Social logo

learn-python's Introduction

Exploring New Programming Languages

We've explored server-side programming with JavaScript, but there are many other options out there. In this assignment, we're going to take a look at working in Python.

There won't be a lot of information here on exactly what you should do. There are some pointers here to get you started, but you'll need to do a lot research on your own.

You should work through this assignment yourself, but check in with your group as you go to share what you are learning, useful resources, and ask questions.

Objectives

  • install tools required to work with a new language
  • explore basic syntax (variables, types, data structures, loops, conditionals, functions) of new language
  • solve a whiteboard logic problem in a new language
  • document and share what you've learned in a GitHub readme

Install

Working with a new language means you'll need some new tools. Start by figuring out what you need to install to get started. When doing development on a Mac, Homebrew is a good starting point.

Search the web for how to get setup with your assigned language using Homebrew.

Note: Homebrew is nice because it allows you to keep the version of languages you use for development separate from what might be installed by your OS. Many languages, including python, also provide tools that help you manage the version of the language used across different projects. (Check-out pyenv for python).

Hello World

A great place to get started with a new language is by making a Hello World program.

Search the web for a basic Hello World tutorial for your assigned language to get things started.

Basic syntax

Hello World is a great starting point, but you'll need to sort out more language features to get a bigger application up and running. Find a language guide to help you with basic syntax for functions, conditionals, and loops.

Take some time to look into how to buff it up a bit by writing a function. Can you get it to say hello to a person by name using a function parameter?

Programming

After you are a bit familiar with the basic syntax, solve one of our "whiteboard" problems (FizzBuzz, reverse a string or array, LeapYear, etc.) in your new language! Do this on your computer, not on a whiteboard!

Here is a list of things you should focus on:

  1. Variables & types :

    • how to make a variable (do variables have types?)
    • write to the console
  2. Data structures and loops:

    • arrays or lists of things
    • objects
  3. Functions and conditionals:

    • write a function that takes arguments and returns a value (sum 2 numbers)
    • operators - math, logical (and/or/not)
  4. Pull things all together in one problem. Solve a whiteboard problem! (FizzBuzz, reverse a string or array, LeapYear, etc.) You can find our old whiteboard challenges in the syllabus repository!

GitHub Repo

Setup a new GitHub repo with a README file that has instruction for installing the new language tools & resources your group found useful. Then add some notes with an example of each of the items listed above. Think of this Readme as a way to highlight your new language learning journey. This is a great way to show potential employers that you can tackle a challenge and learn a new language quickly!

When you are done, complete the assignment on the portal with your GitHub repo link.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.