Skip to main content

Featured

Python To read the news

Hello Guys, in this blog we will use Python to read the news. Before this, the concepts of APIs, JSON, Python Libraries should be clear. We are going to use 'newsdataapi' library of Python. The newsdataapi is the official Python client library for the Newsdata.io API. Its primary purpose is to simplify the process of accessing global news data directly from Newsdata.io, allowing developers to integrate news content into their applications without having to manually construct HTTP requests. It acts as a wrapper around the API, handling the complexities of authentication, request parameters, and response parsing. So Lets Start. Making Python to read the online news Step 1: Get your API key Sign Up : Go to the Newsdata.io website and create a free account. The free plan typically offers a limited number of credits per day (e.g., 200 credits). Get the Key : Once you've created and verified your account, your unique API key will be available on your dashboard. Copy this key,...

Basic Syntax of C program

 #include <stdio.h>

int main(){

printf("Hello world");

return 0;

}


The above program is one of simplest program that is written in C language. Let's understand the each line.

 #include <stdio.h>

This statements which begins with # sign are directives for the preprocessor. These statements are processed before the program is compiled. Preprocessor handles these directives. Preprocessor  directive shown above attaches the code of the header file stdio to your program. Header files are those files which contain all the information that is required to make use of the  C libraries.

int main()

From her the main function starts. The main() function is the point from where all C programs begins their execution. The content of main() function is alway executed first. The content are written inside the '{'  and '}'.

printf("Hello world");

This lines displays the message. printf() statement is used to display message. Every executable statement in C must be terminated by semicolon ;

return 0;

It means that the function doesnot return any value.




Comments

Popular Posts