
Python makes it easy to do anything in IT field.
Today we will use Python to short any URL.
We will be using “pyshorteners” module from Python.
You can install by typing "pip install pyshorteners" inside terminal.
There is nothing big to explain here, as Python makes most of the code too short and the same is here.
We are using "pyshorteners" which shorts any URL we give to the program.
Code
import pyshorteners
url = input("Enter your url")
s = pyshorteners.Shortener().tinyurl.short(url)
print("Your shorted is -->", s)Output
Enter your url-->https://copyassignment.com/ Your shorted is --> http://tinyurl.com/ycnqto68
Watch YouTube Video:
Also read:
- Meta supports community development near its data centers through grants
Meta’s annual Data Center Community Action Grants program is fueling innovation in local data center communities, with a focus on empowering people to leverage technology for community benefit. This year’s grants will support organizations that build sustainable communities, improve local science, technology, engineering, arts, and mathematics (STEAM) education, and advance AI education and workforce development…. - Exploring the world of underwater robotics through coding techniques
Recent advancements in underwater robotics have led to increased interest in the field, with potential applications in marine conservation, offshore exploration, and more. Announcement Summary A new video highlights the coding aspects of underwater robotics, showcasing the unique challenges and opportunities in this area. The video features experts in the field discussing their approaches to… - ABB Robotics partners with NVIDIA for large scale physical AI solutions
ABB Robotics has partnered with NVIDIA to integrate the Omniverse platform, enabling the delivery of industrial-grade physical AI at scale. Announcement Summary The integration of NVIDIA Omniverse with ABB Robotics will facilitate the creation of more sophisticated and autonomous robotic systems. This collaboration is expected to revolutionize the field of industrial robotics by providing a… - Why All AI Models Are Slowly Becoming the Same Model
Artificial Intelligence has progressed at an astonishing speed over the last few years. In a short period of time, the world moved from simple chatbots and rule-based systems to powerful language models capable of writing code, solving complex problems, and assisting in research. At first glance, it appears that many different companies are building very… - Aam Aadmi vs Corrupt System: How ChatGPT Helped One Guy Expose Govt Fraud, The Story: “Ravi and The Missing Light Pole”
Ravi was just a normal guy from a small town in Uttar Pradesh. He worked in a private IT support company, nothing fancy, and earned enough to keep his home running. He lived in a street that had one big problem. The street was dark. No street light. At night, people were scared to walk….








