Skip to content

Tag: python-3.x

regex convert to object

I’m trying to get the value as regex as follow: But I can get the only single value such as “fixed-address” and “host2name”. In “domain-name-servers” I did with “,” in regex. But I think it isn’t the right way because the values are not same count. C…

How can I create a loop with my conditions

i am looking for help. We need to write a program that prints all numbers in the range of (n -20,n + 20). In addition, the program asks you beforehand to input a number. If that number is not even or multiple of 10, you need to take a guess again. Only if the number is even and multiple by

Pyspark agg max function showing different result

I was just studying some pyspark code and didnt understand these particular lines. I have a python code such as below: When showing empDF after Isn’t it supposed to show the longest list? It is showing [Python , R] as the output ? I dont understand how is this output coming? Answer Pyspark’s max f…