Python Learning
5.92K subscribers
456 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 code snippet if x=1?

x<<2
Anonymous Quiz
12%
8
43%
1
22%
2
24%
4
Python Most Ask Interview Qsn_.pdf
440.2 KB
Python Most Ask Interview Questions
👍3
What will be the output of the following Python expression?

bin(29)
Anonymous Quiz
18%
‘0b10111’
57%
‘0b11101’
18%
‘0b11111’
8%
‘0b11011’
🥰4🔥1
COMMON TERMINOLOGIES IN PYTHON - PART 1

Have you ever gotten into a discussion with a programmer before? Did you find some of the Terminologies mentioned strange or you didn't fully understand them?

In this series, we would be looking at the common Terminologies in python.

It is important to know these Terminologies to be able to professionally/properly explain your codes to people and/or to be able to understand what people say in an instant when these codes are mentioned. Below are a few:

IDLE (Integrated Development and Learning Environment) - this is an environment that allows you to easily write Python code. IDLE can be used to execute a single statements and create, modify, and execute Python scripts.

Python Shell - This is the interactive environment that allows you to type in python code and execute them immediately

System Python - This is the version of python that comes with your operating system

Prompt - usually represented by the symbol ">>>" and it simply means that python is waiting for you to give it some instructions

REPL (Read-Evaluate-Print-Loop) - this refers to the sequence of events in your interactive window in form of a loop (python reads the code inputted>the code is evaluated>output is printed)

Argument - this is a value that is passed to a function when called eg print("Hello World")... "Hello World" is the argument that is being passed.

Function - this is a code that takes some input, known as arguments, processes that input and produces an output called a return value. E.g print("Hello World")... print is the function

Return Value - this is the value that a function returns to the calling script or function when it completes its task (in other words, Output). E.g.
>>> print("Hello World")
Hello World
Where Hello World is your return value.

Note: A return value can be any of these variable types: handle, integer, object, or string

Script - This is a file where you store your python code in a text file and execute all of the code with a single command

Script files - this is a file containing a group of python scripts
👍15🔥3👏1
Python Learning pinned «COMMON TERMINOLOGIES IN PYTHON - PART 1 Have you ever gotten into a discussion with a programmer before? Did you find some of the Terminologies mentioned strange or you didn't fully understand them? In this series, we would be looking at the common Terminologies…»
What will be the value of x in the following Python expression, if the result of that expression is 2?

x>>2
Anonymous Quiz
37%
8
34%
4
14%
2
15%
1
👍7
Machine Learning Tools
👍7
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
👍52👏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