en
Feedback
PYTHON PROGRAMMING

PYTHON PROGRAMMING

Open in Telegram

https://t.me/addlist/oJIs6WVKrqBmMWQ1 Hello! I am @Myhurthearts and welcome to the Coding channel! Here we can learn all things related to coding and improve our skills , just let me know!

Show more
3 582
Subscribers
No data24 hours
+47 days
-1530 days
Posts Archive
πŸŽ‰ Quiz Alert! πŸš€ πŸ—“οΈ Date: Today πŸ•˜ Time: 9:00 PM πŸ“ Location: @CODING_WARRIOR πŸ“š Subject: C, PYTHON , JAVA ,C++,JS
Get ready to test your skills! πŸ’₯ Don't miss out on this exciting challenge! πŸ’ͺ✨
Reward πŸ† - 20+ programming language course drive link πŸ”— which one you want 😁
Reward πŸŽ‰ - Rank 1 😁 SIGMA 5.0 Rank 2-10 Drive Course
Join for more βœ… https://t.me/addlist/vnAFuK9rY6FjNjM1

Guy's are you ready for Programming Quiz competition with Course Rewards
Anonymous voting

Python programs
+7
Python programs

🌟 Kickstart Your Python Developer Career! 🌟 πŸš€ Learn Python with Top Courses at Unbeatable Prices! πŸš€ ✨ Courses Available:  - Adul Bari Python  - PYTHON FULL STACK: KV Rao 2024 πŸ–₯️  - PYTHON DSA: DurgaSoft βš™οΈ  - KRISH NAIK Python Course πŸ“š  - Ineuron Python Course 🐍  πŸ“© Message: @Myhurthearts @imabhi3030 πŸŽ‰βœ¨ Your Python Developer journey starts here! πŸπŸ’»

🌟 Kickstart Your Python Developer Career! 🌟 πŸš€ Learn Python with Top Courses at Unbeatable Prices! πŸš€ ✨ Courses Available: - Adul Bari Python - PYTHON FULL STACK: KV Rao 2024 πŸ–₯️ - PYTHON DSA: DurgaSoft βš™οΈ - KRISH NAIK Python Course πŸ“š - Ineuron Python Course 🐍 πŸ’₯ Don’t miss out! Get these *popular and in-demand courses* for just 100! πŸ’₯ (Original price: 10,000) πŸ‘‰ Limited Time Offer! Join now to save big! πŸ‘ˆ πŸ“© Message: @Myhurthearts @imabhi3030 to enroll today! πŸŽ‰βœ¨ Your Python Developer journey starts here! πŸπŸ’»

Important and best notes 😁❀️ Do not forget to React ❀️ to this Message for More Content Like this Share with your friends πŸ‘‰ https://t.me/addlist/vnAFuK9rY6FjNjM1

Python (Data Structures) βœ…

Top 50 Python Interview Question Answer Guide.pdf2.16 KB

python (1).pdf22.55 MB

+9
python (1).pdf22.55 MB

PythonNotesForProfessionals.pdf

intermediate-python.pdf0.61 KB

photo content
+7

Flask app that interacts with the Waifu API to fetch and display tags and search for images based on parameters you provided. πŸš€ ### Flask App Structure 1. Install Flask: Make sure you have Flask installed. You can do this via pip:
   pip install Flask
   
2. Create your Flask app: Below is the complete code for the Flask app:
from flask import Flask, jsonify, render_template
import requests

app = Flask(__name__)

@app.route('/')
def home():
    return render_template('index.html')

@app.route('/tags')
def get_tags():
    url = 'https://api.waifu.im/tags'
    response = requests.get(url)

    if response.status_code == 200:
        data = response.json()
        return jsonify(data)
    else:
        return jsonify({'error': 'Request failed with status code:', 'status': response.status_code}), response.status_code

@app.route('/search/<tag>')
def search_images(tag):
    url = 'https://api.waifu.im/search'
    params = {
        'included_tags': [tag],
    }

    response = requests.get(url, params=params)

    if response.status_code == 200:
        data = response.json()
        return jsonify(data)
    else:
        return jsonify({'error': 'Request failed with status code:', 'status': response.status_code}), response.status_code

if __name__ == '__main__':
    app.run(debug=True)
3. Create Template File: Create a folder named templates in the same directory as your Flask app and create a file named index.html.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Waifu App</title>
</head>
<body>
    <h1>Welcome to the Waifu App! 🌟</h1>
    <h2>Available Tags and Image Search</h2>
    <p>Use the following endpoints:</p>
    <ul>
        <li><a href="/tags">Get Tags</a></li>
        <li>Search Images: <a href="/search/maid">Maid Images</a></li>
    </ul>
</body>
</html>
How to Run the App 1. Save the Python script (e.g., app.py) and the HTML file. 2. Run the Flask app:
   python app.py
   
3. Open your web browser and go to http://127.0.0.1:5000/ to see the app in action! πŸŽ‰

🌟 **Kickstart Your Python Developer Career!** 🌟 πŸš€ **Learn Python with Top Courses at Unbeatable Prices!** πŸš€ ✨ **Courses Available:** - **Adul Bari Python** - **PYTHON FULL STACK: KV Rao 2024** πŸ–₯️ - **PYTHON DSA: DurgaSoft** βš™οΈ - **KRISH NAIK Python Course** πŸ“š - **Ineuron Python Course** 🐍 πŸ’₯ **Don’t miss out!** Get these *popular and in-demand courses* for just **100**! πŸ’₯ (Original price: **10,000**) πŸ‘‰ **Limited Time Offer! Join now to save big!** πŸ‘ˆ πŸ“© **Message:** @Myhurthearts @imabhi3030 to enroll today! πŸŽ‰βœ¨ Your Python Developer journey starts here! πŸπŸ’»

// Q.1 Print all even number from 100..

for (let i = 0; i<=100; i++) {
  // console.log(i);
  if (i % 2 == 0) {
    console.log(i);
  }
}

def getPrint(name="world", some): print(f"Hello {name}") getPrint("Chiku", 55)
Anonymous voting

Convert PDF files to Excel files using Python
Convert PDF files to Excel files using Python