# 02-CS-UY 1114：Lab 2

AI悦创原创PythonPython一对一教学Python一对一辅导Python 辅导编程一对一教学少儿编程一对一NYU编程辅导NYU Python辅导PythonPython一对一教学Python一对一辅导Python 辅导编程一对一教学少儿编程一对一NYU编程辅导NYU Python辅导大约 2 分钟...约 678 字

## Expressions, Operators, Math, Random, Number Systems

You must get checked out by your lab CA prior to leaving early. If you leave without being checked out, you will receive 0 credit for the lab.

## Restrictions

The Python structures that you use in this lab should be restricted to those you have learned in lecture so far. Please check with your teaching assistants in case you are unsure whether something is or is not allowed!

Create a new python file for each of the following problems.

Your files should be named lab[num]_q[num].py similar to homework naming conventions.

## Problem 1: Binary and Other Number Systems Conversions

Convert the following numbers by hand:

Binary to Decimal: $01011010_2 = ?$

Decimal to Binary: $153_{10} = ?$

Binary to Hexadecimal: $10100111_2 = ?$

Hexadecimal to Decimal: $0xFDA_{16} = ?$

## Problem 6: The Bell Curve

AI悦创·编程一对一

AI悦创·推出辅导班啦，包括「Python 语言辅导班、C++ 辅导班、java 辅导班、算法/数据结构辅导班、少儿编程、pygame 游戏开发、Web、Linux」，全部都是一对一教学：一对一辅导 + 一对一答疑 + 布置作业 + 项目实践等。当然，还有线下线上摄影课程、Photoshop、Premiere 一对一教学、QQ、微信在线，随时响应！微信：Jiabcdefh

C++ 信息奥赛题解，长期更新！长期招收一对一中小学信息奥赛集训，莆田、厦门地区有机会线下上门，其他地区线上。微信：Jiabcdefh

• 0
• 0
• 0
• 0
• 0
• 0

• 按正序
• 按倒序
• 按热度