Python Data Science Jobs & Interviews
18.2K subscribers
141 photos
3 videos
15 files
253 links
Your go-to hub for Python and Data Science—featuring questions, answers, quizzes, and interview tips to sharpen your skills and boost your career in the data-driven world.

Admin: @Hussein_Sheikho
Download Telegram
Python Logo Source Code


import turtle

t = turtle.Turtle()
s = turtle.Screen()
s.bgcolor("black")
t.speed(10)
t.pensize(2)
t.pencolor("white")



def s_curve():
    for i in range(90):
        t.left(1)
        t.forward(1)

def r_curve():
    for i in range(90):
        t.right(1)
        t.forward(1)

def l_curve():
    s_curve()
    t.forward(80)
    s_curve()

def l_curve1():
    s_curve()
    t.forward(90)
    s_curve()

def half():
    t.forward(50)
    s_curve()
    t.forward(90)
    l_curve()
    t.forward(40)
    t.left(90)
    t.forward(80)
    t.right(90)
    t.forward(10)
    t.right(90)
    t.forward(120) #on test
    l_curve1()
    t.forward(30)
    t.left(90)
    t.forward(50)
    r_curve()
    t.forward(40)
    t.end_fill()

def get_pos():
    t.penup()
    t.forward(20)
    t.right(90)
    t.forward(10)
    t.right(90)
    t.pendown()

def eye():
    t.penup()
    t.right(90)
    t.forward(160)
    t.left(90)
    t.forward(70)
    t.pencolor("black")
    t.dot(35)

def sec_dot():
    t.left(90)
    t.penup()
    t.forward(310)
    t.left(90)
    t.forward(120)
    t.pendown()

    t.dot(35)




t.fillcolor("#306998")
t.begin_fill()
half()
t.end_fill()
get_pos()
t.fillcolor("#FFD43B")
t.begin_fill()
half()
t.end_fill()

eye()
sec_dot()



def pause():
    t.speed(2)
    for i in range(100):
        t.left(90)
pause()
👍31
🙏💸 500$ FOR THE FIRST 500 WHO JOIN THE CHANNEL! 🙏💸

Join our channel today for free! Tomorrow it will cost 500$!

https://t.iss.one/+vhF2zNz5GBw3NTU1

You can join at this link! 👆👇

https://t.iss.one/+vhF2zNz5GBw3NTU1
👍3
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
The latest and the most up-to-date cyber news will be presented on PPHM HACKER NEWS.
PPHM subscribers are the first people that receive firsthand cybernews and Tech news.

You won't miss any cyber news with us.


https://t.iss.one/pphm_HackerNews
Python Data Science Jobs & Interviews pinned «The latest and the most up-to-date cyber news will be presented on PPHM HACKER NEWS. PPHM subscribers are the first people that receive firsthand cybernews and Tech news. You won't miss any cyber news with us. https://t.iss.one/pphm_HackerNews»
0002)
Anonymous Quiz
73%
1
13%
2
4%
3
11%
4
4😐1
This media is not supported in your browser
VIEW IN TELEGRAM
0003)
Anonymous Quiz
29%
1
44%
2
18%
3
9%
4
modular programming exists in Python too. It helps us organize related code in a clean, maintainable, and scalable way. Let’s learn how to do this step by step in Python.

---

Step 1: Create a Module File

Create a new file called string_utils.py and write related functions inside it:

# string_utils.py

def to_uppercase(s):
return s.upper()

def to_lowercase(s):
return s.lower()

---

Step 2: Use the Module in the Main File

Create another file called main.py and import the functions from string_utils:

# main.py

from string_utils import to_uppercase, to_lowercase

print(to_uppercase("hello")) # Output: HELLO
print(to_lowercase("WORLD")) # Output: world

---

Step 3: Run the Code

To run the program, just execute the following command in your terminal or in an IDE like VS Code:

python main.py

---

Practice:

Now it’s your turn!

1. Create a new file called math_utils.py.
2. Define functions like add, subtract, and multiply inside it.
3. Import and test them in main.py.



⭐️ https://t.iss.one/DataScienceQ
Please open Telegram to view this post
VIEW IN TELEGRAM
👍6
This media is not supported in your browser
VIEW IN TELEGRAM
0004)
Anonymous Quiz
54%
1
13%
2
12%
3
21%
4
👍2
Ace the data science interview

This book available now

Price 10 usdt

Contact @hussein_sheikho
👍2👏1