Python Learning
5.92K subscribers
455 photos
1 video
65 files
109 links
Python Coding resources, Cheat Sheets & Quizzes! ๐Ÿง‘โ€๐Ÿ’ป

Free courses: @bigdataspecialist

@datascience_bds
@github_repositories_bds
@coding_interview_preparation
@tech_news_bds

DMCA: @disclosure_bds

Contact: @mldatascientist
Download Telegram
What will be the output of the following Python expression?

int(1011)?
Anonymous Quiz
62%
1011
22%
11
13%
13
3%
1101
๐Ÿ‘5
Learn Python
๐Ÿ‘11
To find the decimal value of 1111, that is 15, we can use the function:
Anonymous Quiz
34%
int(1111,10)
19%
int(โ€˜1111โ€™,10)
32%
int(1111,2)
15%
int(โ€˜1111โ€™,2)
12 hours of Python course on YouTube

โญ๏ธTime Stampsโญ๏ธ
#1 (00:00:00)โ€‹ Python tutorial for beginners ๐Ÿ
#2 (00:05:57โ€‹) variables โœ˜
#3 (00;17;38โ€‹) multiple assignment ๐Ÿ” 
#4 (00:20:27โ€‹) string methods ใ€ฐ๏ธ
#5 (00:25:13โ€‹) type cast ๐Ÿ’ฑ
#6 (00:30:14โ€‹) user input โŒจ๏ธ
#7 (00:36:50โ€‹) math functions ๐Ÿงฎ
#8 (00:40:58โ€‹) string slicing โœ‚๏ธ
#9 (00:51:52โ€‹) if statements ๐Ÿค”
#10 (00:58:19)โ€‹ logical operators ๐Ÿ”ฃ
#11 (01:04:03โ€‹) while loops ๐Ÿ”„
#12 (01:07:31โ€‹) for loops โžฐ
#13 (01:13:04โ€‹) nested loops โžฟ
#14 (01:17:08) break continue pass โ›”๏ธ
#15 (01:21:06โ€‹) lists ๐Ÿงพ
#16 (01:26:58โ€‹) 2D lists ๐Ÿ“œ
#17 (01:30:47โ€‹) tuples ๐Ÿ“„
#18 (01:33:47โ€‹) sets ๐Ÿด
#19 (01:40:03โ€‹) dictionaries ๐Ÿ“–
#20 (01:47:20โ€‹) indexing ๐Ÿ“‘
#21 (01:53:23โ€‹) functions ๐Ÿ“ž
#22 (02:02:03โ€‹) return statement ๐Ÿ”™
#23 (02:04:51) keyword arguments ๐Ÿ”‘
#24 (02:07:09โ€‹) nested function calls ๐Ÿ–‡
#25 (02:09:40โ€‹) variable scope ๐Ÿ”ฌ
#26 (02:13:23โ€‹) *args ๐Ÿ“ฆ
#27 (02:16:58โ€‹) **kwargs ๐ŸŽ
#28 (02:21:17โ€‹) string format ๐Ÿ’ฌ
#29 (02:33:22โ€‹) random numbers ๐ŸŽฒ
#30 (02:36:43โ€‹) exception handling โš ๏ธ
#31 (02:43:40) file detection ๐Ÿ“
#32 (02:47:28โ€‹) read a file ๐Ÿ”
#33 (02:51:00โ€‹) write a file ๐Ÿ“
#34 (02:53:45โ€‹) copy a file ๐Ÿ–จ
#35 (02:57:05โ€‹) move a file ๐Ÿ—ƒ
#36 (03:01:20โ€‹) delete a file ๐Ÿ—‘
#37 (03:06:15โ€‹) modules ๐Ÿ’Œ
#38 (03:10:26) rock, paper, scissors game ๐Ÿ—ฟ
#39 (03:18:32โ€‹) quiz game ๐Ÿ’ฏ
#40 (03:35:45โ€‹) Object Oriented Programming (OOP) ๐Ÿ
#41 (03:45:06โ€‹) class variables ๐Ÿš—
#42 (03:48:54โ€‹) inheritance ๐Ÿ‘ช
#43 (03:55:30โ€‹) multilevel inheritance ๐Ÿ‘ด
#44 (03:58:32) multiple inheritance ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ
#45 (04:01:49) method overriding ๐Ÿ™…
#46 (04:04:14โ€‹) method chaining โ›“
#47 (04:08:08) super function ๐Ÿฆธ
#48 (04:12:09โ€‹) abstract classes ๐Ÿ‘ป
#49 (04:19:12) objects as arguments ๐Ÿ
#50 (04:23:20โ€‹) duck typing ๐Ÿฆ†
#51 (04:27:38) walrus operator ๐Ÿฆฆ
#52 (04:31:45โ€‹) functions to variables ๐Ÿ“›
#53 (04:35:21โ€‹) higher order functions ๐Ÿ‘‘
#54 (04:41:06โ€‹) lambda ฮป
#55 (04:45:44โ€‹) sort ๐Ÿ—„
#56 (04:53:22โ€‹) map ๐Ÿ—บ
#57 (04:57:17โ€‹) filter ๐Ÿบ
#58 (05:00:10โ€‹) reduce โ™ป๏ธ
#59 (05:04:54โ€‹) list comprehensions ๐Ÿ“ฐ
#60 (05:10:54) dictionary comprehensions ๐Ÿ•ฎ
#61 (05:18:59โ€‹) zip function ๐Ÿค
#62 (05:23:41โ€‹) if name == 'main' โ“
#63 (05:29:21โ€‹) time module โŒš๏ธ
#64 (05:39:58โ€‹) threading ๐Ÿงต
#65 (05:53:31โ€‹) daemon threads ๐Ÿ˜ˆ
#66 (05:58:19โ€‹) multiprocessing โšก๏ธ
#67 (06:07:15โ€‹) GUI windows ๐Ÿ–ผ
#68 (06:14:38โ€‹) labels ๐Ÿท
#69 (06:24:24โ€‹) buttons ๐Ÿ›Ž
#70 (06:30:44โ€‹) entrybox โŒจ๏ธ
#71 (06:40:15โ€‹) checkbox โœ”๏ธ
#72 (06:49:08โ€‹) radio buttons ๐Ÿ”˜
#73 (07:00:47โ€‹) scale ๐ŸŒก
#74 (07:10:24โ€‹) listbox ๐Ÿ“‹
#75 (07:24:41โ€‹) messagebox ๐Ÿ’ญ
#76 (07:37:17โ€‹) colorchooser ๐ŸŽจ
#77 (07:43:10โ€‹) text area ๐Ÿ“’
#78 (07:48:38โ€‹) open a file (file dialog) ๐Ÿ“
#79 (07:55:33โ€‹) save a file (file dialog) ๐Ÿ’พ
#80 (08:05:17โ€‹) menubar ๐Ÿงพ
#81 (08:15:23โ€‹) frames โšฐ๏ธ
#82 (08:21:30โ€‹) new windows ๐Ÿ—”
#83 (08:25:32โ€‹) window tabs ๐Ÿ“‘
#84 (08:30:52โ€‹) grid ๐Ÿข
#85 (08:39:52โ€‹) progress bar ๐Ÿ“Š
#86 (08:49:48โ€‹) canvas ๐Ÿ–
#87 (09:01:18โ€‹) keyboard events โŒจ๏ธ
#88 (09:05:54โ€‹) mouse events ๐Ÿ–ฑ
#89 (09:11:00โ€‹) drag & drop ๐Ÿ‘ˆ
#90 (09:18:18โ€‹) move images w/ keys ๐ŸŽ
#91 (09:29:13โ€‹) animations ๐Ÿ›ธ
#92 (09:41:31โ€‹) multiple animations ๐ŸŽž
#93 (09:53:04โ€‹) clock program ๐Ÿ•’
#94 (10:01:03โ€‹) send an email ๐Ÿ“ง
#95 (10:07:37โ€‹) run with command prompt ๐Ÿ‘จโ€๐Ÿ’ป
#96 (10:09:53) pip ๐Ÿ—
#97 (10:13:30) py to exe ๐Ÿƒ
#98 (10:17:13โ€‹) calculator program ๐Ÿ–ฉ
#99 (10:31:38โ€‹) text editor program โœ๏ธ
100 (11:05:51) tic tac toe game โญ•๏ธ
101 (11:26:25)โ€‹ snake game ๐Ÿ

๐Ÿ”— Course link
๐Ÿ‘5โค2๐Ÿ‘1
What will be the output of the following Python expression if x=15 and y=12?

x & y
Anonymous Quiz
16%
b1101
27%
0b1101
35%
12
22%
1101
python-mastery

Advanced Python Mastery (course by dabeaz)

Creator: Dabeaz LLC
Stars โญ๏ธ: 4.4k
Forked By: 482
https://github.com/dabeaz-course/python-mastery

#python #mastery
โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
๐Ÿ”ฅ2๐Ÿฅฐ2๐Ÿ‘1
Which of the following expressions results in an error?
Anonymous Quiz
14%
int(1011)
54%
int(โ€˜1011โ€™,23)
17%
int(1011,2)
15%
int(โ€˜1011โ€™)
Hello World: Create your First Python Program

In the last post, we completed our Python installation and setup. Itโ€™s time to create your first program.
Creating First Program
Step 1) Open PyCharm Editor. You can see the introductory screen for PyCharm. To create a new project, click on โ€œCreate New Projectโ€.

Step 2) You will need to select a location.

You can select the location where you want the project to be created. If you donโ€™t want to change location than keep it as it is but at least change the name from โ€œuntitledโ€ to something more meaningful, like โ€œFirstProjectโ€.
PyCharm should have found the Python interpreter you installed earlier.
Next Click the โ€œCreateโ€ Button.

Step 3) Now Go up to the โ€œFileโ€ menu and select โ€œNewโ€. Next, select โ€œPython Fileโ€.

Step 4) A new pop up will appear. Now type the name of the file you want (Here we give โ€œHelloWorldโ€) and hit โ€œOKโ€.

Step 5) Now type a simple program โ€“ print (โ€˜Hello World!โ€™).

Step 6) Now Go up to the โ€œRunโ€ menu and select โ€œRunโ€ to run your program.

Step 7) You can see the output of your program at the bottom of the screen.

Step 8) Donโ€™t worry if you donโ€™t have Pycharm Editor installed, you can still run the code from the command prompt. Enter the correct path of a file in command prompt to run the program.

Step 9) If you are still not able to run the program, we have Python Editor for you.
Please run the given code at Python Online Editor

๐Ÿ”— Read Online

#Python #helloworld
โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
๐Ÿ‘4
Which of the following represents the bitwise XOR operator?
Anonymous Quiz
17%
&
50%
^
23%
|
10%
!
What is the value of the following Python expression?

bin(0x8)
Anonymous Quiz
28%
โ€˜0bx1000โ€™
23%
8
23%
1000
26%
โ€˜0b1000โ€™
Whirlwind Tour Of Python

This repository contains the Jupyter Notebooks behind my O'Reilly report, A Whirlwind Tour of Python (free 100-page pdf).

A Whirlwind Tour of Python is a fast-paced introduction to essential components of the Python language for researchers and developers who are already familiar with programming in another language.

The material is particularly aimed at those who wish to use Python for data science and/or scientific programming, and in this capacity serves as an introduction to The Python Data Science Handbook (also with notebooks on github). These materials are adapted from courses and workshops I've given on these topics at University of Washington and at various conferences, meetings, and workshops around the world.

Creator: Jake Vanderplas
Stars โญ๏ธ: 3.4k
Forked By: 1.5k
https://github.com/jakevdp/WhirlwindTourOfPython

#python
โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
What will be the output of the following Python expression?

0x35 | 0x75
Anonymous Quiz
41%
115
24%
116
23%
117
12%
118
Python print() Function
How to Print in Python with Examples

In the last post, we completed our first program. Itโ€™s time to print a message in python.

The print() function in Python is used to print a specified message on the screen. The print command in Python prints strings or objects which are converted to a string while printing on a screen.

Syntax:

print(object(s))

How to Print a simple String in Python?
More often then not you require to Print strings in your coding construct.

Here is how to print statement in Python 3:
To print the Welcome to Big Data, use the Python print statement as follows:

1   print ("Welcome to Big Data")

Output:
Welcome to Big Data

๐Ÿ”— Read Online

#Python #python_3
โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
โค3๐Ÿ‘3
The oneโ€™s complement of 110010101 is:
Anonymous Quiz
57%
001101010
20%
110010101
14%
001101011
8%
110010100
Forwarded from Free programming books
Please open Telegram to view this post
VIEW IN TELEGRAM
Bitwise _________ gives 1 if either of the bits is 1 and 0 when both of the bits are 1.
Anonymous Quiz
40%
OR
17%
AND
37%
XOR
6%
NOT
python-training

Python training for business analysts and traders. This is designed to be an introduction to numerical computing and data visualization in Python. It is not designed to be a complete course in Computer Science or programming, but rather a motivational demonstration of how relatively complex topics can be accessible even to those without formal progamming backgrounds.

Creator: J.P. Morgan
Stars: โญ๏ธ 2.9k
Forked by: 709
GitHub repo: https://github.com/jpmorganchase/python-training

#python #training
โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
Join @github_repositories_bds for more cool repositories.
*This channel belongs to @bigdataspecialist group
What will be the output of the following Python expression?

4^12
Anonymous Quiz
12%
2
31%
4
30%
8
27%
12
๐Ÿ‘4
Any odd number on being AND-ed with ________ always gives 1. Hint: Any even number on being AND-ed with this value always gives 0.
Anonymous Quiz
15%
10
25%
2
50%
1
10%
0