Tuesday 22 November 2022

Git merge branch to another branch

$ git checkout develop
$ git pull
$ git checkout test-branch
$ git merge develop
$ git push

Tuesday 26 July 2022

You need to take an integer input and then draw the pattern according to it. Say for example if you enter 5 then, the pattern should be like this in PHP

You need to take an integer input and then draw the pattern according to it. Say for example if you enter 5 then, the pattern should be like this

A A A A A

B B B B B

C C C C C

D D D D D

E E E E E 

Input Format: You will take an integer input n from stdin.

Constraints: 1 < = n < = 26

Output Format: Your output should be the pattern according to the input which you had entered.  


Input

5

Output

A A A A A

B B B B B

C C C C C

D D D D D

E E E E E


Program

<?php
/* Read input from STDIN. Print your output to STDOUT*/
$fp = fopen("php://stdin", "r");
fscanf(STDIN, "%d\n", $number);
$alphas = range('A', 'Z');
$columnLength = 5;
for($i=0;$i<$number;$i++){
$space = "";
for($j=0;$j<$columnLength;$j++){
echo $space.$alphas[$i];
$space = " ";
}
echo "\n";
}
?>

 

Thursday 3 February 2022

Where to Get Latest Technology News?

  1. Social Recap
  2. TheNextWeb.com
  3. Wired.com
  4. Tech2.com
  5. Gizmodo.com
  6. TheVerge.com
  7. DigitalTrends.com
  8. Mashable.com
  9. TechRadar.com
  10. Technorati.com

Saturday 29 January 2022

Python Pandas merge all csv in a folder

Below the code merge all CSV in a floder 

import glob, os 
import pandas as 
pd df = pd.concat(map(pd.read_csv, glob.glob(os.path.join('', "*.csv"))))

Tuesday 7 December 2021

Top 8 Interview Questions in Python

  1. What is the difference between List and Tuples in Python?
  2. Python an interpreted language explain
  3. What is Pep8?
  4. What are Python Namespaces?
  5. What are Decorators in Python?
  6. What are Dict and List comprehension?
  7. What is the difference between .py and .pyc files?
  8. What is Slicing in Python?

Git merge branch to another branch

$ git checkout develop $ git pull $ git checkout test-branch $ git merge develop $ git push