YouTube videos Download
I made a program to download YouTube videos in high or low quality and changing download directory
To download video in high quality write 'best' and for low quality write 'worst' instead of 'best' as given in pic
#Python#YouTubeDownload#YouTube
@Python_Dv Answer B
List comprehension method
For loop means iterate through numbers in list and check for even numbers because (if x%2==0)
So 2 and 4 are the numbers
Now x*x means
2*2=4
4*4=16
So, B is the right answer
@Python_Dv Answer D)
1. In line one str1 is a variable equal to a string "6/4"
2. In line two print('Str1') the Str1 is in quotation means not the same variable as in line one
So, the output will be Str1
In short,
Print(Str1) the output will be 6/4
Print ('Str1') the output is Str1
@Python_Dv str1 = 'abc'
str2 = str1
means str2='abc'
Now, str1+='d'
means str1='abcd'
Where str2 remains unchanged
str1 is str2 means 'abc' is 'abcd'
Which returns false
So, B is the right answer
@clcoding If parameters having values by default and not pass the argument then those values will print out when invoking the function
But if having default parameters and also passing the value as a argument the argument value will be preferred
So, A is the right answer
@Python_Dv Spli.t method split guven string with assigned element and returns a list
In rada remove 'a' from radar and return the remaining variables in a list
So, A is the right answer
@clcoding Invoke hamster class which inherits animal class
Super method will print very
And the small will be printed out
The output will be very small
@Python_Dv Join method in python join the list elements with given delimiter
''.join(L) means join elements in list L without space between them
So, C is the right answer
@clcoding This is based on Method overriding concept
Calling car(), the method printconsumption is not defined in child class so it will move to parent class and
Print "low"
Invoking truck() the method is there, the output will be "high" for truck()
The final output will be
Low
High
Right now highly involved in sql and doing projects as well
And found this basic join methods, like what they do and how there syntax looks like
P.s: Will share projects soon
#SQL#RDBS#Join#mysql#PostgreSQL#pythonprogramming