From 2a57a4dea220eaa1d05b8e7670e262448bb52ab5 Mon Sep 17 00:00:00 2001 From: As2771 <33177900+As2771@users.noreply.github.com> Date: Sat, 28 Oct 2017 18:38:26 +0530 Subject: [PATCH 1/3] Hello World in Python 2 --- Hello World in Python 2 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Hello World in Python 2 diff --git a/Hello World in Python 2 b/Hello World in Python 2 new file mode 100644 index 0000000..efc8c8c --- /dev/null +++ b/Hello World in Python 2 @@ -0,0 +1,4 @@ +# to print Hello world in python we have to write the following code +print "Hello World" +""" double quotes are used when we have to print string + (#) is used to show 1 line comment """ From 9ca58bc057c0986eb1f7ed712a0de872cf7f167a Mon Sep 17 00:00:00 2001 From: As2771 <33177900+As2771@users.noreply.github.com> Date: Sat, 28 Oct 2017 18:43:15 +0530 Subject: [PATCH 2/3] Taking input and printing it in C --- Taking input and printing it in C | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Taking input and printing it in C diff --git a/Taking input and printing it in C b/Taking input and printing it in C new file mode 100644 index 0000000..dea3df8 --- /dev/null +++ b/Taking input and printing it in C @@ -0,0 +1,8 @@ +// to take input we use the scanf and to print we use the syntax printf +#include +int main() +{ +int x; +scanf("%d\n",&x); +printf("%d",x); +} From 3377264e0ff16fca4c10ed86baba9e11b097aa16 Mon Sep 17 00:00:00 2001 From: As2771 <33177900+As2771@users.noreply.github.com> Date: Sat, 28 Oct 2017 18:52:17 +0530 Subject: [PATCH 3/3] Create performing mathematical operations in python 2 --- performing mathematical operations in python 2 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 performing mathematical operations in python 2 diff --git a/performing mathematical operations in python 2 b/performing mathematical operations in python 2 new file mode 100644 index 0000000..f4ad075 --- /dev/null +++ b/performing mathematical operations in python 2 @@ -0,0 +1,6 @@ +a = int(raw_input()) +b = int(raw_input()) +print a+b +print a-b +print a*b +print a**b # it means a raise to the power b (a^b)