Leetcode with dani – Telegram
Leetcode with dani
1.31K subscribers
197 photos
14 videos
56 files
240 links
Join us and let's tackle leet code questions together: improve your problem-solving skills
Preparing for coding interviews
learning new algorithms and data structures
connect with other coding enthusiasts
Download Telegram
kemejemria jmro python memar mefelgu sewoch ke first message gemrachu mayet techlalachu keza betechemari be mangnawm seat erdata kefelegachu conatct argugn https://news.1rj.ru/str/zprogramming_bot
❤‍🔥7
🇪🇹Ethio Apps Store 📀
Python_4.2.21_Pro.apk
be slk lemetemaru kesr yalwn tetekemu yelayegnaw kalseralachu
#code_challenge write a code for a Given a string containing just the characters '(', ')', '{', '}', '[', and ']', determine if the input string is valid. An input string is valid if:
Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order
you can submit your answers via https://news.1rj.ru/str/zprogramming_bot
seletemechegn nw share yarekut
Forwarded from Dani
አትጠይቅ (?)

"አትመርምር ፣ አትጠይቅ ፣
ልብህ ቢያስብ እንኳን ፣ ምላስህን ጠብቅ፣
"ዝም በል" የሚሉት ቃል ፦
ተመራምሮ ላየው ፣ ብዙ ያስጠይቃል ።

ሲጀመር ፦
አስተዋይ አዋቂ ፣ ጠያቂ...አዕምሮ፣
ከነፍስ ባህርይ፣ በሥጋ አንጎል ቋጥሮ፣
አምላክ ከፈጠረ
ስለምን ዝም ይበል፣ የተመራመረ ?

ሲቀጥል ፦
ልብ የጠየቀውን ፣ አንደበት አውጥቶ ስላልተናገረ፣
የልብብ ሚያውቅ አምላክ፣ እንዳልተጠየቀ እንዴት ተቆጠረ?

ባጭሩ ፦
የሰነፍ አንደበት ፣ ለመልስ ሲቸግረው፣
መርማሪ አዕምሮን፣ "በአትጠይቅ" አሰረው ።

መላኩ አላምረው
5🔥1
#code_challenge write a code that find the longest common prefix in the Given two strings.
from our group member
Forwarded from K
def bracket_validator(s):
bracket_stack = []
char_tree = ["{([","})]"]
cor = {"}":"{","]":"[",")":"("}
for i in s:
if i in char_tree[0]:
bracket_stack.append(i)
elif i in char_tree[1]:
bracket_stack.pop() if cor[str(i)] == bracket_stack[-1] else False

return False if bracket_stack else True
Forwarded from Leetcode with dani
kemejemria jmro python memar mefelgu sewoch ke first message gemrachu mayet techlalachu keza betechemari be mangnawm seat erdata kefelegachu conatct argugn https://news.1rj.ru/str/zprogramming_bot
👍1
Forwarded from Leetcode with dani
welcome to our channel this channel is built to help new programmers and for those who wants to know more about programming share our channel to your friends
6
New students seeking a tutor at a reasonable price from top students at AAU are encouraged to contact me. https://news.1rj.ru/str/zprogramming_bot
🔥4
Leetcode with dani
Python_Tutorial_Python_Full_Course_for_Beginners_uQrJ0TkZlc_136.mp4
I recommend the above file for beginners who want to learn Python.
Forwarded from Leetcode with dani
Welcome to your first day of Python programming! Today, we will be introducing you to the basics of Python programming and getting you started on your journey to becoming a proficient Python programmer.

First, let's start with the basics. Python is a high-level, interpreted programming language that is widely used for web development, data analysis, artificial intelligence, and many other applications. It is known for its simplicity, readability, and ease of use, making it a great language for beginners to learn.

To get started with Python, you will need to install Python on your computer. You can download the latest version of Python from the official Python website (https://www.python.org/downloads/). Once you have installed Python, you can open the Python interpreter, which is a command-line interface that allows you to enter Python code and see the results.

Let's start with a simple example. Open the Python interpreter and type the following code:

print("Hello, world!")


Press enter, and you should see the output "Hello, world!" printed on the screen. Congratulations, you have just written your first Python program!

Now, let's take a closer look at the code. The print() function is a built-in function in Python that allows you to print text to the screen. In this case, we are printing the text "Hello, world!" to the screen. The text is enclosed in double quotes, which tells Python that it is a string.

Next, let's talk about variables. In Python, a variable is a name that represents a value. You can assign a value to a variable using the assignment operator =. For example:

x = 5


This assigns the value 5 to the variable x. You can then use the variable x in your code:

print(x)


This will print the value of x, which is 5.

Variables can also be assigned to other variables:

x = 5
y = x
print(y)


This will print the value of y, which is also 5, because we assigned y to the value of x.

You can also perform arithmetic operations on variables:

x = 5
y = 3
print(x + y) # prints 8
print(x - y) # prints 2
print(x * y) # prints 15
print(x / y) # prints 1.6666666666666667


This will perform arithmetic operations on the variables x and y and print the results to the screen.

That's it for today's lesson! We hope you have enjoyed your introduction to Python programming, and we look forward to teaching you more in the coming days.
👍1
Forwarded from Leetcode with dani
In Python, a variable is a name that refers to a value. Variables are used to store data that can be used later in the program. In Python, variables are created when they are first assigned a value. The basic syntax for creating a variable in Python is as follows:

variable_name = value


In this syntax, variable_name is the name of the variable, and value is the value that the variable is assigned. Here's an example of creating a variable in Python:

x = 5


In this example, the variable x is created and assigned the value 5. Once a variable is created, it can be used in expressions and statements throughout the program.

Variables in Python can hold many different types of values, including numbers, strings, lists, and more. Here are some examples of creating variables with different types of values:

# create a variable with a number value
x = 5

# create a variable with a string value
name = "Alice"

# create a variable with a list value
fruits = ["apple", "banana", "cherry"]


In these examples, the variables x, name, and fruits are created with different types of values. The variable x is assigned the number 5, the variable name is assigned the string "Alice", and the variable fruits is assigned a list of strings.

Variables in Python can also be reassigned to new values. Here's an example of reassigning a variable in Python:

x = 5
x = x + 1
print(x)


In this example, the variable x is first assigned the value 5. The second line of code reassigns x to the value of x + 1, which is 6. The print() function is then called to print the value of x, which is 6.
2
Many group members are interested in learning Python from scratch, while others want to continue from their current level. What are your thoughts on this? Please communicate with us