Python Learning
5.93K subscribers
431 photos
1 video
59 files
107 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
How to Run Python Scripts: Step by Step Guide

What is the Script in Python?
A script in Python can be defined as a file that consists of Python code or a program. It ends with an extension as .py
An interpreter can execute a script in two distinct ways, as listed below: –

A script can be executed as a module or as a script itself.
A code that is written in an interactive Python command prompt session manner.

How to run Python code and scripts interactively?
Here are steps to do this:

Step 1) The programmer must open the command line in the interactive mode.

Step 2) In the next step, invoke the python interpreter in the command line by typing the following command: –

Command:

python

πŸ”— Read Online

#Python #python_3
βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
The formatting method {1:<10} represents the ___________ positional argument, _________ justified in a 10 character wide field.
Anonymous Quiz
44%
first, right
29%
second, left
22%
first, left
5%
second, right
Scientific programming in python cheat sheet
πŸ‘2
What will be the output of the following Python code?

hex(255), int('FF', 16), 0xFF
Anonymous Quiz
31%
[0xFF, 255, 16, 255]
22%
(β€˜0xff’, 155, 16, 255)
22%
Error
24%
(β€˜0xff’, 255, 255)
πŸ‘2
Python Escape Character Sequences (Examples)

Escape characters or sequences are illegal characters for Python and never get printed as part of the output. When backslash is used in Python programming, it allows the program to escape the next characters.

Following would be the syntax for an escape sequence

\Escape character

Here, the escape character could be t, n, e, or backslash itself.

Types of Escape Sequence

Escape characters can be classified as non-printable characters when backslash precedes them. The print statements do not print escape characters.


πŸ”— Read Online

#Python #python_3
βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–
Join @python_bds for more cool data science materials.
*This channel belongs to @bigdataspecialist group
The output of the two codes shown is the same.
Anonymous Quiz
67%
True
33%
False
DND Server
Dark and Darker private server implementation written in Python


Creator: Snaacky
Stars ⭐️: 222
Forked By: 52
https://github.com/Snaacky/dndserver


#dnd #server
βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–βž–
Join @github_repositories_bds for more cool repositories.
*This channel belongs to @bigdataspecialist group
Python Libraries and Frameworks
πŸ‘2
What will be the output of the Python code?
Anonymous Quiz
26%
Error
35%
sanfoundry
24%
san foundry
15%
{β€˜san’, β€˜foundry’}
πŸ‘2
Get address and zip code using python
What will be the output of the following Python code?

'The {} side {1} {2}'.format('bright', 'of', 'life')
Anonymous Quiz
18%
Error
50%
β€˜The bright side of life’
27%
β€˜The {bright} side {of} {life}’
5%
No output
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 code?

'{0:f}, {1:2f}, {2:05.2f}'.format(1.23456, 1.23456, 1.23456)
Anonymous Quiz
36%
Error
32%
β€˜1.234560, 1.22345, 1.23’
14%
No output
19%
β€˜1.234560, 1.234560, 01.23’
Python List Methods clearly Explained!πŸš€

Here are brief descriptions for each, followed by Illustrations below!

β€’ append( ):

Adds an element to the end of the list.

β€’ pop( ):

Removes and returns an element at a given index. If no index is specified, it removes and returns the last element.

β€’ insert( ):

Inserts an element at a specified index, pushing other elements to the right.

β€’ remove( ):

Removes the first occurrence of a specified value from the list.
β€’ extend( ):

Appends all the elements from another list (or any iterable) to the end of the list.

β€’ reverse( ):

Reverses the elements in the list in-place.

β€’ index( ):

Returns the index of the first occurrence of a specified value in the list.

β€’ count( ):

Returns the number of occurrences of a specified value in the list.

β€’ sort( ):

Sorts the elements in the list in-place. Optional arguments can specify ascending or descending order.
πŸ‘4
What will be the output of the following Python code?

'%.2f%s' % (1.2345, 99)
Anonymous Quiz
19%
β€˜1.2345’, β€˜99’
20%
β€˜1.2399’
25%
'1.234599’
36%
1.23, 99
How python program runs?
πŸ‘2