Using windows command prompt we can create multiple directories at once in easy steps as defined below.
Step 1) Open Windows command prompt by typing “cmd” in type here to search and press enter. After Pressing enter windows will open command prompt.
Step 2) Change Directory where you need to create multiple directory. For example here we are creating multiple directories under “F:\multipledirectory\” folder so we need to navigate to that directory.
So first command we are giving is f: and pressing enter key
f:\
now second command we are giving is ” cd multipledirectory ” and pressing Enter key
cd multipledirectory
Now type “dir” and press enter to check if any existing subdirectories are available or not.
Now to create multiple directory in one command you need to use “md” command by providing directory names like below
md one two three four
So if you observe here using command prompt we have created multiple directories only by using single command “md”
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Python language is popular for data science and analytics. Many data processing software use python. Many python libraries are used in machine learning projects.
Here is step by step guide to install python on windows machine.
Step 2) Click on button “Download Python 3.10.0” ( In future this version may change to try to select latest version)
Step 3) After clicking on “Download Python 3.10.0” Site will download exe file to download folder section
Step 4) Double click on exe file “python-3.10.0-amd64.exe” and Run the Setup
Step 5) Select Check box “Add Python 3.10 to Path” and then click on Install Now Button
Step 6) Wait for installer to complete installation
It will take couple of minutes for installation.
Step 7) System will give successful message along with path limitation (which can be ignored). Click on Close Button
Step 8) Now go to command prompt to check if python is installed or not. Type cmd in Windows Search option and press enter. After displaying command prompt type python and you will get below message.
To Start coding in python or to write first program in python we can use default editor “IDLE”. IDLE (Integrated Development and Learning Environment) is a default editor that comes with Python.
To open default editor type IDLE in Windows “Type here to Search” section and hit Enter
System will display below editor
Click on File -> New File
System will display editor to write new program for specific file.
Simple 3 line python program to convert user input kilometer to miles
#Accept Distance in Kilometer
#from km to miles need to divide appx 1.609344
km=float(input("\n\t Enter Kilometer to Convert it in miles: "))
#Now converting kilometer to Miles
miles=float((km/1.609344))
print("\n\t %f kilometer in Miles are %f "%(km,miles))
Output
Enter Kilometer to Convert it in miles: 3
3.000000 kilometer in Miles are 1.864114
In Python there are many ways to identify largest or smallest number from user input. Here we are using for loop.
nrange = int(input("\n\t From how many numbers you want to find smallest & largest number\t"))
num = int(input("\n\t Enter number 1 ==>\t"))
min_num = num
max_num = num
for x in range(nrange-1):
num=int(input('\n\t Enter number %d ==>\t'%(x+2)))
if ( num < min_num ):
min_num = num
if ( num > max_num ):
max_num = num
print('\n\t Maximum number is %d'%(max_num))
print('\n\t Minimum number is %d'%(min_num))
Output
From how many numbers you want to find smallest & largest number 3
3
Enter number 1 ==> 3
Enter number 2 ==> 3
Enter number 3 ==> 4
Maximum number is 4
Minimum number is 3
>>>
In above program we are accepting first number from user and declaring it as maximum and minimum number.
Further in for loop we are accepting numbers from user and comparing it with variables maximum and minimum to interchange.
Recommended to write logic on paper and execute it manually then use editor.
There are many ways to identify largest or smallest number from user input. Here we are using for loop.
// Program to find smallest and largest number from user input.
#include<stdio.h>
void main()
{
int large,small,no,range,i;
printf ("\n\tFrom how many numbers you want to identify smallest and largest\t");
scanf ("%d", &range);
printf ("\n\tEnter number 1==>");
scanf ("%d", &no);
large = no;
small=no;
for (i=1; i<= range -1 ; i++)
{
printf ("\n\t Enter number %d ==> ",i+1);
scanf ("%d",&no);
if (no >= large)
large = no;
if (no <= small)
small = no;
}//end of For loop
printf ("\n\t The largest number is %d", large);
printf ("\n\t The smallest number is %d", small);
}
Output
From how many numbers you want to identify smallest and largest 6
Enter number 1==>11
Enter number 2 ==> 11
Enter number 3 ==> 22
Enter number 4 ==> 22
Enter number 5 ==> 33
Enter number 6 ==> 44
The largest number is 44
The smallest number is 11
We can write this program using various loop and logic.
Here is C Program – Complete code to convert kilometers to mile by accepting user input.
Formula used in program is : miles=(km/1.609344);
//Accept Distance in Kilometer
// from km to miles need to divide appx 1.609344
#include<stdio.h>
#include<conio.h>
void main()
{
float km,miles;// declaring variable as float as km can be in decimal.
printf("\n\t Enter Kilometer to Convert it in miles: ");
scanf("%f",&km); //%f Read float value
//Now converting kilometer to Miles
miles=(km/1.609344);
printf("\n\t %f kilometer in Miles are %f ",km,miles);
getch();
}
OUTPUT
Enter Kilometer to Convert it in miles: 1
1.000000 kilometer in Miles are 0.621371
Data entered in Notepad file should be comma separated.
For example if text file contains below data like two columns and in each row data content is separated by comma. Now save the file as “test.csv” and Open It.
Else Copy below data as it is in text file. Use File -> Save As option and provide any file name with extension csv in inverted quotes like “test.csv” and save it. double click on file and file should open in csv format.
Use below data to copy in notepad and save it as stated above. Or you can try to create your own data by adding comma in each row.
Step 6) Add below CSS code to design social text as button. Below code can be added in external CSS plugin or Themes -> Customize->Additional CSS Section.
Whats app share icon is visible only on mobile phone. Can change settings by editing css.
In place of text button we can also use fab class for example =’fab fa-facebook’ to convert them in icon. and css for this is “.social-share a.fab.fa-facebook {background-color:#3a5795;}”