background preloader

An Introduction to Interactive Programming in Python

An Introduction to Interactive Programming in Python
About this course: This two-part course is designed to help students with very little or no computing background learn the basics of building simple interactive applications. Our language of choice, Python, is an easy-to learn, high-level computer language that is used in many of the computational courses offered on Coursera. To make learning Python easy, we have developed a new browser-based programming environment that makes developing interactive applications in Python simple. Related:  Python Learning ResourcesCourses

Python In One Easy Lesson Nick Parlante Nov 2010 This is a one-hour introduction to Python used for Stanford's CS107. This material should work as an introduction for any experienced programmer. We'll look at some core Python features and get a feel for how it compares to other languages. Python is a popular open source, cross-platform language in the "dynamic language" niche, like Javascript, Ruby, Lisp, and Perl. Unlike C/C++, Python defers almost everything until runtime. This is how Python works, in contrast to the C/C++ style of knowing the type of every variable and using that for compile time code generation. x = x + x In Python, x could be an int, or a string, or who knows what. Interpreter and Variables You can run the Python interpreter and type code directly in to it -- a good way to try little experiments. Strings Strings are delimited with ' or " or """, and are immutable. >>> a = 'hello' >>> len(a) 5 >>> a[0] 'h' >>> a + '!!!' Lists [ ], For Loop List literals are enclosed in square brackets. #! Sorting

Learn to Program: The Fundamentals About the Course A computer program is a set of instructions for a computer to follow, just as a recipe is a set of instructions for a chef. Laptops, kitchen appliances, MP3 players, and many other electronic devices all run computer programs. Programs have been written to manipulate sound and video, write poetry, run banking systems, predict the weather, and analyze athletic performance. This course is intended for people who have never seen a computer program. It will give you a better understanding of how computer applications work and teach you how to write your own applications. Recommended Background This course is intended for people who have never programmed before. Suggested Readings This online course is intended to be self-contained, but if you want additional reading material you will find that Practical Programming (2nd edition): An Introduction to Computer Science Using Python 3 matches the course material closely. Course Format

Heterogeneous Parallel Programming About the Course All computing systems, from mobile to supercomputers, are becoming heterogeneous, massively parallel computers for higher power efficiency and computation throughput. While the computing community is racing to build tools and libraries to ease the use of these systems, effective and confident use of these systems will always require knowledge about low-level programming in these systems. This course is designed for students to learn the essence of low-level programming interfaces and how to use these interfaces to achieve application goals. CUDA C, with its good balance between user control and verboseness, will serve as the teaching vehicle for the first half of the course. The course is unique in that it is application oriented and only introduces the necessary underlying computer science and computer engineering knowledge for understanding. Recommended Background Programming experience in C/C++. Course Format

Курсы информационных технологий — Яндекс.События Компания «Яндекс» регулярно проводит набор на Курсы информационных технологий для студентов и молодых специалистов, проживающих в Москве и Подмосковье и желающих больше узнать о системном администрировании, операционной системе GNU/Linux и её применении в Яндексе. Курс состоит из теоретической и практической части. Первая часть включает в себя несколько лекций. Занятия проходят по будням вечером в московском офисе Яндекса. По окончании курса лекций все слушатели получают сертификаты. Завершающим этапом теоретического курса является экзамен. Если практика будет успешной, мы можем пригласить студентов остаться в Яндексе на постоянную работу. Руководитель проекта — Виктор Ашик. Вопросы и комментарии присылайте по адресу: intern@yandex-team.ru.

Hands-On Python A Tutorial Introduction for Beginners Hands-On Python A Tutorial Introduction for Beginners Contents Chapter 1Beginning With Python 1.1. Context You have probably used computers to do all sorts of useful and interesting things. 1.1.1. First let us place Python programming in the context of the computer hardware. z = x+y is an instruction in many high-level languages that means something like: Access the value stored at a location labeled x Calculate the sum of this value and the value stored at a location labeled y Store the result in a location labeled z. No computer understands the high-level instruction directly; it is not in machine language. Obviously high-level languages were a great advance in clarity! If you follow a broad introduction to computing, you will learn more about the layers that connect low-level digital computer circuits to high-level languages. 1.1.2. There are many high-level languages. 1.1.3. If you are not sure whether your computer already has Python, continue to Section 1.2.2, and give it a try. Windows

Free Online Course Materials | Courses Functional Programming Principles in Scala About the Course This course introduces the cornerstones of functional programming using the Scala programming language. Functional programming has become more and more popular in recent years because it promotes code that’s safe, concise, and elegant. Furthermore, functional programming makes it easier to write parallel code for today’s and tomorrow’s multiprocessors by replacing mutable variables and loops with powerful ways to define and compose functions. Scala is a language that fuses functional and object-oriented programming in a practical package. In this course you will discover the elements of the functional programming style and learn how to apply them usefully in your daily programming tasks. The course is hands on; most units introduce short programs that serve as illustrations of important concepts and invite you to play with them, modifying and improving them. Course Syllabus Week Three: Defining and using immutable objects, review of inheritance and dynamic binding.

Сети для самых маленьких. Часть третья. Статическая маршрутизация Мальчик сказал маме: “Я хочу кушать”. Мама отправила его к папе. Мальчик сказал папе: “Я хочу кушать”. Папа отправил его к маме. Итак, поворотный момент в истории компании “Лифт ми Ап”. Содержание: Чуточку практики для взбадривания. Процесс настройки маршрутизатора очень прост: 0) Сначала закончим с коммутатором msk-arbat-dsw1. msk-arbat-dsw1(config)#interface FastEthernet0/24 msk-arbat-dsw1(config-if)# description msk-arbat-gw1 msk-arbat-dsw1(config-if)# switchport trunk allowed vlan 2-3,101-104 msk-arbat-dsw1(config-if)# switchport mode trunk 1) Назначаем имя маршрутизатора командой hostname, а для развития хорошего тона, надо упомянуть, что лучше сразу же настроить время на устройстве. Router0#clock set 12:34:56 7 august 2012 Router0# conf t Router0(config)#hostname msk-arbat-gw1 Желательно время на сетевые устройства раздавать через NTP (любую циску можно сделать NTP-сервером, кстати) msk-arbat-gw1(config)#interface fastEthernet 0/0 msk-arbat-gw1(config-if)#no shutdown IP-план

Python Introduction - Google's Python Class - Google Code Python is a dynamic, interpreted language. Source code does not declare the types of variables or parameters or methods. This makes the code short and flexible, and you lose the compile-time type checking in the source code. Python tracks the types of all values at runtime and flags code that does not make sense as it runs. (todo: link here to the companion video segment for this section) An excellent way to see how Python code works is to run the Python interpreter and type code right into it. Python Program Python source files use the ".py" extension. Here's a very simple Python hello.py program (notice that blocks of code are delimited strictly using indentation rather than curly braces -- more on this later!) #! # import modules used here -- sys is a very standard oneimport sys # Gather our code in a main() functiondef main(): print 'Hello there', sys.argv[1] # Command line args are in sys.argv[1], sys.argv[2] ... # sys.argv[0] is the script name itself and can be ignored Python Module

Professors without borders Will online learning spell the end of universities? Stanford University: students from Bakersfield to Bangalore can now take its computer science courses online Primm, Nevada, is a three-casino, one-rollercoaster town in the Mojave Desert, just across the California state line and 40 minutes south of Las Vegas’s shimmering neon. Road-weary truckers can choose between Whiskey Pete’s, Terrible’s Lotto, and Starbucks. The centre of town is a discount fashion megamall. In spring 2005, preparing for that autumn’s Defence Advanced Research Projects Agency (DARPA) Grand Challenge, Sebastian Thrun, a Stanford professor of robotics, and David Stavens, his undergraduate protégé, arrived in the desert for several months of off-road testing. The Grand Challenge called on American university students to build robotic cars and race them, unassisted, across 131 miles of unforgiving desert scrub, over salt flats and down the treacherous Beer Bottle Pass. I mentioned this to Evans when we spoke in April.

Coding the Matrix: Linear Algebra through Computer Science Applications About the Course When you take a digital photo with your phone or transform the image in Photoshop, when you play a video game or watch a movie with digital effects, when you do a web search or make a phone call, you are using technologies that build upon linear algebra. Linear algebra provides concepts that are crucial to many areas of computer science, including graphics, image processing, cryptography, machine learning, computer vision, optimization, graph algorithms, quantum computation, computational biology, information retrieval and web search. Linear algebra in turn is built on two basic elements, the matrix and the vector. In this class, you will learn the concepts and methods of linear algebra, and how to use them to think about problems arising in computer science. Recommended Background You should be an experienced programmer. You are not expected to have any background in linear algebra. Suggested Readings Coding the Matrix is an optional companion textbook.

Сети для самых маленьких. Часть вторая. Коммутация После скучного рассказа о подключении к кошкам переходим к настройке сети. В этот раз темы будут для новичков сложные, для старичков избитые. Впрочем сетевым аксакалам едва ли удастся почерпнуть что-то новое из этого цикла. Перед тем, как вы обратитесь к практике, настоятельно рекомендуем почитать нулевую часть, где мы всё спланировали и запротоколировали. Теория Для начала необходимо определится с определениями и детерминировать терминологию. И последнее, что хотелось бы отметить в связи с ЛВС — это IP-адресация. Дело в том, что все IP адреса делятся на приватные (private, он же внутренний, “серый”, локальный), и публичные. Приватные используются для адресации хостов (ну, строго говоря, не хостов, а интерфейсов) внутри ЛВС, их распределение никто не контролирует. Важный момент касаемо “классов адресов”, об этом уже как-то писали на хабре: классов адресов уже давно не существует. Это те адреса, которые вы можете использовать в своей частной сети. Теперь проследим нелёгкий путь кадра. 2.

A Python Book: Beginning Python, Advanced Python, and Python Exercises 2.2 Regular Expressions For more help on regular expressions, see: 2.2.1 Defining regular expressions A regular expression pattern is a sequence of characters that will match sequences of characters in a target. The patterns or regular expressions can be defined as follows: Literal characters must match exactly. Because of the use of backslashes in patterns, you are usually better off defining regular expressions with raw strings, e.g. r"abc". 2.2.2 Compiling regular expressions When a regular expression is to be used more than once, you should consider compiling it. import sys, re pat = re.compile('aa[bc]*dd') while 1: line = raw_input('Enter a line ("q" to quit):') if line == 'q': break if pat.search(line): print 'matched:', line else: print 'no match:', line Comments: We import module re in order to use regular expresions.re.compile() compiles a regular expression so that we can reuse the compiled regular expression without compiling it repeatedly. 2.2.3 Using regular expressions Notes:

Related: