from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.linear_model import LogisticRegression
# Sample training data (manually added)
texts = [
"NASA finds water on Mars",
"Apple launches new iPhone with AI",
"Aliens have landed in Delhi",
"Government bans all smartphones",
"COVID-19 vaccine approved worldwide",
"World ends tomorrow",
"Elon Musk buys the Moon",
"UN announces global peace treaty",
]
labels = ["REAL", "REAL", "FAKE", "FAKE", "REAL", "FAKE", "FAKE", "REAL"]
# Step 1: Preprocess
vectorizer = TfidfVectorizer()
X = vectorizer.fit_transform(texts)
# Step 2: Train model
model = LogisticRegression()
model.fit(X, labels)
# Step 3: Take input and predict
headline = input("π° Enter a news headline: ")
headline_vec = vectorizer.transform([headline])
prediction = model.predict(headline_vec)
print(" This news is:", "FAKE " if prediction[0] == "FAKE" else "REAL ")
from sklearn.linear_model import LogisticRegression
# Sample training data (manually added)
texts = [
"NASA finds water on Mars",
"Apple launches new iPhone with AI",
"Aliens have landed in Delhi",
"Government bans all smartphones",
"COVID-19 vaccine approved worldwide",
"World ends tomorrow",
"Elon Musk buys the Moon",
"UN announces global peace treaty",
]
labels = ["REAL", "REAL", "FAKE", "FAKE", "REAL", "FAKE", "FAKE", "REAL"]
# Step 1: Preprocess
vectorizer = TfidfVectorizer()
X = vectorizer.fit_transform(texts)
# Step 2: Train model
model = LogisticRegression()
model.fit(X, labels)
# Step 3: Take input and predict
headline = input("π° Enter a news headline: ")
headline_vec = vectorizer.transform([headline])
prediction = model.predict(headline_vec)
print(" This news is:", "FAKE " if prediction[0] == "FAKE" else "REAL ")
β€10π₯6π2
from instabot import Bot
bot = Bot()
#Login
bot.login(username="your_username", password="your_password")
#Don't use your main account because it might get affected!
#Create a demo account for test purpose!
#Follow a user
bot.follow("elonmusk")
#comment
bot.comment("coding","Great content!")
#send DM to someone
bot.send_message("Hey! Big fan",["python.science","only_programming"])
bot = Bot()
#Login
bot.login(username="your_username", password="your_password")
#Don't use your main account because it might get affected!
#Create a demo account for test purpose!
#Follow a user
bot.follow("elonmusk")
#comment
bot.comment("coding","Great content!")
#send DM to someone
bot.send_message("Hey! Big fan",["python.science","only_programming"])
β€7π₯3
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY")
messages = [
{"role": "system", "content": "You are an intelligent assistant."}
]
while True:
message = input("User : ")
if message:
messages.append({"role": "user", "content": message})
chat = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=messages
)
reply = chat.choices[0].message.content
print(f"ChatGPT: {reply}")
messages.append({"role": "assistant", "content": reply})
client = OpenAI(api_key="YOUR_API_KEY")
messages = [
{"role": "system", "content": "You are an intelligent assistant."}
]
while True:
message = input("User : ")
if message:
messages.append({"role": "user", "content": message})
chat = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=messages
)
reply = chat.choices[0].message.content
print(f"ChatGPT: {reply}")
messages.append({"role": "assistant", "content": reply})
β€7π±4
# YT Complete Playlist Download
from pytube import Playlist
p = Playlist("https://www.youtube.com/playlist?list=PLxgZQoSe9cg00xClkch7Gr")
for video in p.videos:
video.streams.first().download()
from pytube import Playlist
p = Playlist("https://www.youtube.com/playlist?list=PLxgZQoSe9cg00xClkch7Gr")
for video in p.videos:
video.streams.first().download()
β€4π’4
I really wish my seniors told me about these websites before my final year π
1/ NotebookLM:
Upload your study notes or articles and instantly turn them into podcasts.
https://notebooklm.google/
2/ Writefull:
Specially trained on journals to improve your academic writing and works seamlessly with Overleaf & Word.
https://www.writefull.com/
3/ Undetectable AI:
Upload your study notes and get text that sounds natural and authentic.
https://undetectable.ai/?dv=ca&peoc=true
4/ PDF Drive:
Access all the books and articles you need for school or college in one place.
https://pdfdrive.com.co/
5/ Writefull:
Specially trained on journals to improve your academic writing - and works seamlessly with Overleaf & Word.
https://mapify.so/
1/ NotebookLM:
Upload your study notes or articles and instantly turn them into podcasts.
https://notebooklm.google/
2/ Writefull:
Specially trained on journals to improve your academic writing and works seamlessly with Overleaf & Word.
https://www.writefull.com/
3/ Undetectable AI:
Upload your study notes and get text that sounds natural and authentic.
https://undetectable.ai/?dv=ca&peoc=true
4/ PDF Drive:
Access all the books and articles you need for school or college in one place.
https://pdfdrive.com.co/
5/ Writefull:
Specially trained on journals to improve your academic writing - and works seamlessly with Overleaf & Word.
https://mapify.so/
Gemini Notebook
Gemini Notebook | AI Research Tool & Thinking Partner
Meet Gemini Notebook, the AI research tool and thinking partner that can analyze your sources, turn complexity into clarity and transform your content.
β€5
7 Days = 7 Certificates π―
1/ Google Certifications: https://developers.google.com/certification
2/ PayPal (Technical Compliance / PCI): https://www.paypal.com/in/webapps/mpp/pci-compliance
3/ Deloitte Academy (Learning & Certifications): https://www.deloitte.com/cy/en/services/deloitte-academy.html
4/ Oracle Certifications: https://academy.oracle.com/en/resources-oracle-certifications.html
5/ IBM Certifications: https://www.pearsonvue.com/us/en/ibm.html
6/ Meta Certifications: https://www.facebook.com/business/learn/certification
7/ Microsoft: https://learn.microsoft.com/en-us/shows/intro-to-python-development/
1/ Google Certifications: https://developers.google.com/certification
2/ PayPal (Technical Compliance / PCI): https://www.paypal.com/in/webapps/mpp/pci-compliance
3/ Deloitte Academy (Learning & Certifications): https://www.deloitte.com/cy/en/services/deloitte-academy.html
4/ Oracle Certifications: https://academy.oracle.com/en/resources-oracle-certifications.html
5/ IBM Certifications: https://www.pearsonvue.com/us/en/ibm.html
6/ Meta Certifications: https://www.facebook.com/business/learn/certification
7/ Microsoft: https://learn.microsoft.com/en-us/shows/intro-to-python-development/
Google for Developers
Google Developers Certification | Google for Developers
Take a certification exam to gain recognition for your skills as a developer.
β€3
π 75 Days LeetCode Challenge
Innoverse Coding Club is organizing a 75 Days LeetCode Challenge focused on building consistency, DSA problem-solving skills, and interview preparation.
π Duration: 75 Days
π» Mode: Online (Daily questions on Discord)
π Prizes:
π₯ Winner gets βΉ5000 Cash Prize
πΌ Chance for Paid Internship at Cachebugs (Developer Role)
π Certificates:
All participants who successfully complete the challenge will receive an official certificate.
If youβre serious about DSA, placements, and coding discipline β this is for you.
π© Apply Now: https://unstop.com/p/75-days-leetcode-challenge-chandigarh-university-cu-unnao-1641964
π² WhatsApp Group Joining Link: https://chat.whatsapp.com/JPtV7wOCNXeDCjNIffM0yz
π₯ How it works:
* 1 LeetCode problem will be shared daily
* Solve it within 24 hours
* Maintain your streak
* Weβll track consistency & performance
Limited serious participants only.
Innoverse Coding Club is organizing a 75 Days LeetCode Challenge focused on building consistency, DSA problem-solving skills, and interview preparation.
π Duration: 75 Days
π» Mode: Online (Daily questions on Discord)
π Prizes:
π₯ Winner gets βΉ5000 Cash Prize
πΌ Chance for Paid Internship at Cachebugs (Developer Role)
π Certificates:
All participants who successfully complete the challenge will receive an official certificate.
If youβre serious about DSA, placements, and coding discipline β this is for you.
π© Apply Now: https://unstop.com/p/75-days-leetcode-challenge-chandigarh-university-cu-unnao-1641964
π² WhatsApp Group Joining Link: https://chat.whatsapp.com/JPtV7wOCNXeDCjNIffM0yz
π₯ How it works:
* 1 LeetCode problem will be shared daily
* Solve it within 24 hours
* Maintain your streak
* Weβll track consistency & performance
Limited serious participants only.
Unstop
75 Days LeetCode Challenge - 2026
Find out the best 75 Days LeetCode Challenge that match your interests. Prove your mettle and win exciting prizes like job opportunities and cash rewards fro...
β€4