πŸ‘©β€πŸ’» Learn PROGRAMMING πŸ‘¨β€πŸ’»
6.54K subscribers
108 photos
10 videos
30 files
106 links
πŸ–₯Everything About Computer Science and CodingπŸ“²
πŸ“°News, Infographics, Quotes, Memes & Facts
πŸ’ΈYou can join us just for 0β‚Ή/0Β£/0€/0$
Admin: @Augustus_Caesar_Emperor_of_Rome
Download Telegram
Did You Know - Python Tips : 002

# In-Place Swapping Of Two Variables, works with any datatype

x, y = 'hello', 'world'
print(x, y)
x, y = y, x
print(x, y)

#python #tips #HowTo
Did You Know - Python Tips : 003

# Using all the elements in a list, create a single string

mylist = ["Hello!", "Welcome", " to", "iGnani"]
print(" ".join(mylist))

#python #tips #HowTo
Did You Know - Python Tips : 004

#Chaining assignment : assigning the same value to multiple variables, all variables will reference the same object
# Useful when initialising a set of variables with a default value.

a = b = c = x = y = z = 0
print(a, b, c, x, y, z)

#python #tips #HowTo
Practice Code: 001

Each level increases the complexity. Each level should satisfy the previous level

πŸ”₯How many levels can you achieve? πŸ”₯

#python #practiceCode #samples #interviewQuestions #strings #numbers #validation
Practice Code: 002

Accept a number from the user and return the sum of all natural numbers that are multiples of 5,7 less than the number entered by the user. Example --- Input: 15 --- 5, 7, 10, 14 and return 36

πŸ”₯Can you solve this? πŸ”₯
#python #practiceCode #samples #interviewQuestions #numbers
Practice Code: 003

In an array, that has been sorted in ascending order, but has been cyclically shifted, find the element that has the minimum element.
Example, [5, 6, 7, 8, 9, 10, 11, 1, 2, 3, 4]
Write an algorithm that optimally finds the minimum element in such an array.

««« Click here for solution »»»

πŸ”₯Ready to take this challenge? πŸ”₯

#python #practiceCode #samples #interviewQuestions #numbers #algorithm
#PracticeCode: 0005

Permutation: In mathematics, permutation is the act of arranging the members of a set into a sequence or order, or, if the set is already ordered, rearranging its elementsβ€”a process called permuting. Permutations differ from combinations, which are selections of some members of a set regardless of order.

Task:
Write a function, which determines whether one line is a permutation of another. Write an algorithm that optimally finishes the task.

««« Click here for the Solution »»»

πŸ”₯Ready to take this challenge? πŸ”₯

#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Practice Code: 0004

Check if a palindrome can be created from a string entered by the user.
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam, racecar, or the number 10801.

"madam" => true - is already a palindrome
"mamad" => true - can be made a palindrome
"sir" => false - cannot be made a palindrome

««« Click here for the Solution »»»

πŸ”₯Ready to take this challenge? πŸ”₯

#python #practiceCode #samples #interviewQuestions #numbers #algorithm
#PracticeCode: 0006

Task:
Given a line, the words in it are indicated with a space. Print words in descending order of their length.
Input: "My favourite programming language is Python.",
Output: "programming favourite language Python My is."

Use an optimal algorithm to solve this problem.

««« Click here for the Solution »»»

πŸ”₯Ready to take this challenge? πŸ”₯

#python #practiceCode #samples #interviewQuestions #collections #dict #algorithm
Python Tricks And Tips Magazine: Gain Insider Skills : Advanced Guides & Tips

Author: Mehedi Hzn Press Publications
Pub year: 2021

#python #english
*

Building Tic-Tac-Toe with Pygame Tutorial
Pygame is a useful python module that allows you to build graphical interfaces. It is great for python beginners to use and can lead to many interesting projects.

#python #sourceCode #sampleCode #pygame #project #game
Drawing Kaleidoscope Pictures with Pygame
A very simple project to make a Kaleidoscope image using Python.
Good for practice program.

#python #sourceCode #sampleCode #pygame #random