Roadmap:
• Frontend : https://roadmap.sh/frontend
• Backend : https://roadmap.sh/backend
• Devops : https://roadmap.sh/devops
• Reactjs : https://roadmap.sh/react
• Android : https://roadmap.sh/android
• Angular : https://roadmap.sh/angular
• Python : https://roadmap.sh/python
• Golang : https://roadmap.sh/golang
• Java : https://roadmap.sh/java
#Roadmap
Jᴏɪɴ ᴜs :- @Python_Codes_Pro
Support group :- @python_group_pro
• Frontend : https://roadmap.sh/frontend
• Backend : https://roadmap.sh/backend
• Devops : https://roadmap.sh/devops
• Reactjs : https://roadmap.sh/react
• Android : https://roadmap.sh/android
• Angular : https://roadmap.sh/angular
• Python : https://roadmap.sh/python
• Golang : https://roadmap.sh/golang
• Java : https://roadmap.sh/java
#Roadmap
Jᴏɪɴ ᴜs :- @Python_Codes_Pro
Support group :- @python_group_pro
❤1
Convert Animated Gif to video
Sample response https://t.me/the_support_chat/146439
from os import remove,popen
import subprocess
def sprocess(a, b="utf-8"):
p = subprocess.Popen(a,shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
return str(p[0].decode(b)+p[1].decode(b))
vid = await message.reply_to_message.download()
print(sprocess("ffmpeg -y -i '" + vid + "' -map_metadata -1 s.mp4"))
durasi = popen("ffprobe -i '" + vid + "' -show_entries format=duration -v quiet -of csv='p=0'").read()
await message.reply_video(video="s.mp4")
remove("s.mp4")
remove(vid)
Sample response https://t.me/the_support_chat/146439
❤1👍1
y, z = 10, 15
y *= y + z
# What is the value of y. Explain How?
y *= y + z
# What is the value of y. Explain How?
Anonymous Quiz
9%
10
7%
15
26%
25
21%
115
26%
250
5%
None of the above
6%
Show me the answer
👍1
Which of the following operators has the lowest precedence?
Anonymous Quiz
26%
not
16%
and
19%
**
21%
+
19%
%
👍2
Convert Timestamp to Indian Time Zone Using Python.
Output:
import datetime
import pytz
def convert_timestamp_to_ist(timestamp: int) -> str:
utc_date_time = datetime.datetime.utcfromtimestamp(timestamp)
utc_time_zone = pytz.timezone('UTC')
utc_aware_datetime = utc_time_zone.localize(utc_date_time)
ist_time_zone = pytz.timezone('Asia/Kolkata')
ist_aware_datetime = utc_aware_datetime.astimezone(ist_time_zone)
formatted_date = ist_aware_datetime.strftime('%A, %Y-%m-%d %H:%M:%S')
return formatted_date
# print(convert_timestamp_to_ist(1717000920))
Output:
Wednesday, 2024-05-29 22:12:00
👍3
Guess the Output???
def foo(a,b=10,c=17):
return a+b+c
print(foo(a=1,b=8))
👍1
Check either string is an
Anagram or not?
#Output : True
Anagram or not?
An anagram is a word or phrase that is created by rearranging the letters of another word or phrase.
def is_anagram(str1,str2):
return sorted(str1)==sorted(str2)
print(is_anagram("astronomer","moonstarer"))
#Output : True
❤3👍2🕊1
👍4
Task:
You have to create a program where a list of numbers is given and a number of rotation is given. Now you to bring last number of list in front and swift each number to the right. Do this till the given number of rotation.
Sample :-
input - [1,2,3,4] , 2
output - [4,1,2,3] -> [3,4,1,2]
Good luck!
You have to create a program where a list of numbers is given and a number of rotation is given. Now you to bring last number of list in front and swift each number to the right. Do this till the given number of rotation.
Sample :-
input - [1,2,3,4] , 2
output - [4,1,2,3] -> [3,4,1,2]
Good luck!
👍1
Forwarded from Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs (</> ᴍᴜᴋᴇsʜ </>)
👍1
❤1
Forwarded from Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs (</> ᴍᴜᴋᴇsʜ </>)
One line printing in python.
We know that the print function prints on each line, and if we use two print functions, they will print on two lines. This example will show how to output on the same line without branching to a new one.
Jᴏɪɴ ᴜs :- @CodesSnippet
We know that the print function prints on each line, and if we use two print functions, they will print on two lines. This example will show how to output on the same line without branching to a new one.
Jᴏɪɴ ᴜs :- @CodesSnippet
Forwarded from PYTHON PROGRAMMING (</> ᴍᴜᴋᴇsʜ </>)
Forwarded from Cᴏᴅᴇs Sɴɪᴘᴘᴇᴛs (</> ᴍᴜᴋᴇsʜ </>)
⌨️ Remove the Background of an Image Using Python
📱 Join us for more Python tips: @CodesSnippet
#python #programming #code #python3 #dailypost
# pip install rembg pillow
from rembg import remove
from PIL import Image
input_path = "in.png"
output_path = "out.png"
input = Image.open(input_path)
output = remove(input)
output.save(output_path)
📱 Join us for more Python tips: @CodesSnippet
#python #programming #code #python3 #dailypost
👍5
Python Programming is developed in :
Anonymous Quiz
37%
C Programming
26%
Django framework
36%
Py Framework
❤1
Which of the following is not one of the quotation marks we use when writing code in Python?
Anonymous Quiz
20%
Double Quotes
22%
Single Quotes
43%
Quartet Quotes
15%
Triple Quotes