Convert Images to PDFs using Tkinter

Dev Prakash Sharma
Published on 21-Apr-2021 11:00:13
Python is a scripting language and thus, it helps in many ways to create file converters such as CSV to PDF, PDF to DOC, and vice-versa. With the help of certain libraries, we can also create an application that converts images into PDF. To create such an application, we use ... Read More

Difference Between Downloading and Uploading

AmitDiwan
Published on 21-Apr-2021 10:59:55
In this post, we will understand the difference between downloading and uploading data −DownloadIt is a procedure in which files are copied from the web server to the machine.Memory is required to be present in the user’s device to downloading any data.The speed of download is higher than speed of ... Read More

Changing ttk Button Height in Python

Dev Prakash Sharma
Published on 21-Apr-2021 10:58:39
Ttk adds styles to the tkinter’s standard widget which can be configured through different properties and functions. We can change the height of the ttk button by using the grid(options) method. This method contains various attributes and properties with some different options. If we want to resize the ttk button, ... Read More

Difference Between Blog and Vlog

AmitDiwan
Published on 21-Apr-2021 10:57:40
In this post, we will understand the difference between blog and vlog.BlogIt is the method of writing content such as text, gif, pictures, and so on.These blogs are hosted on websites such as Joomla, WordPress, Blogger, and Drupal.They were developed during 1990s and became popular in 2003.It is easy and ... Read More

Changing second half of string number digits to zero using JavaScript

AmitDiwan
Published on 21-Apr-2021 10:29:05
ProblemWe are required to write a JavaScript function that takes in a string number as the only argument.Our function should return the input number with the second half of digits changed to 0.In cases where the number has an odd number of digits, the middle digit onwards should be changed ... Read More

Rotate number to form the maximum number using JavaScript

AmitDiwan
Published on 21-Apr-2021 10:28:28
ProblemWe are required to write a JavaScript function that takes in a number n. Our function is required to return the maximum value by rearranging its digits.ExampleFollowing is the code −const num = 124; const rotateToMax = n => {    n = n       .toString()     ... Read More

Sorting and find sum of differences for an array using JavaScript

AmitDiwan
Published on 21-Apr-2021 10:27:30
ProblemWe are required to write a JavaScript function that takes in an array of integers. Our function should sum the differences between consecutive pairs in the array in descending order.For example − If the array is −[6, 2, 15]Then the output should be −(15 - 6) + (6 - 2) ... Read More

Is the digit divisible by the previous digit of the number in JavaScript

AmitDiwan
Published on 21-Apr-2021 10:26:51
ProblemWe are required to write a JavaScript function that takes in a number and checks each digit if it is divisible by the digit on its left and returns an array of booleans.The booleans should always start with false because there is no digit before the first one.ExampleFollowing is the ... Read More

Generating desired pairs within a range using JavaScript

AmitDiwan
Published on 21-Apr-2021 10:25:59
ProblemWe are required to write a JavaScript function that takes in a number n. Our function should generate an array containing the pairs of integers [a, b] that satisfy the following conditions −0 <= a <= b <= nExampleFollowing is the code − Live Democonst num = 4; const findPairs = ... Read More

Constructing an array of addition/subtractions relative to first array element in JavaScript

AmitDiwan
Published on 21-Apr-2021 10:25:23
ProblemWe are required to write a JavaScript function that takes in an array of positive integers. Our function should map this array to an array of string integers.The array should contain the number we should add/subtract to the first element to achieve the corresponding element.For example[4, 3, 6, 2]should return ... Read More
Advertisements