[Solved] What is this number type?

Those are octal numbers a.k.a base 8. You should avoid using that syntax since it is not allowed in strict mode. You can, however, use them in ES6/ES2015 with some modified syntax. 0o100; // 64 0o50; // 40 0o10; // 8 3 solved What is this number type?

[Solved] How to solve this without using zip

How do you do it with zip? I don’t think it get much easier than {chr(96+i):i for i in range(1,27)} Same idea, different indizes, no magic number: {chr(ord(‘a’)+i):i+1 for i in range(26)} 3 solved How to solve this without using zip

[Solved] Invalid Syntax Error Script [closed]

This isn’t Python. This is actually C++ code. You didn’t post the error, so I have to assume that you tried to execute this code as Python, which would obviously be your problem. If you called it Python by mistake, and actually got a C++ error, please post the error. 2 solved Invalid Syntax Error … Read more

[Solved] Printing a smile face :)

how about this def display(x): for i in x: for j in i: j = chr(j) print (j, end = ‘ ‘) print() if each i represent a line, you need add a extra print to start over in the next line 1 solved Printing a smile face 🙂

[Solved] Double data insert into database asp.net c#

You have two bad practices going on here. First, you should use sql parameters instead of simply concatenating them; to avoid SQL injection. Read here. Second, don’t do an insert in a HTTP GET (Page_Load). You should do this in a HTTP POST and then redirect to an HTTP GET again (PRG pattern). The reason … Read more

[Solved] What does asterix * means in Python

The operators in Python are magic. They invoke special methods depending on the class of the operand. In this case a special method called __mul__ is called from the list class, since a list object is on the left-side. In the case of a list, the list is repeated by the number of times given … Read more

[Solved] JavaScript Split array into multiple arrays inside [duplicate]

You could take an array of the wanted ids and an object which stores the index for the result set for a same group. var data = [{ candidateConfigId: “1”, value: “199128700790” }, { candidateConfigId: “2”, value: “Yujith” }, { candidateConfigId: “3”, value: “Male” }, { candidateConfigId: “4”, value: “SE” }, { candidateConfigId: “5”, value: … Read more

[Solved] How to save a blob (AJAX response) into a named file (JSON type) into my server NOT in user computer [closed]

You don’t need to get data from external API in client side and post them again to your server. PHP can send get request and receive response without jQuery. You can write php script to get product price list from external API like the following: $url = “https://www.notimportant/etc/”; $header = [‘GUID’ => ‘something’] echo “Sending … Read more