diff --git a/newfile.js b/newfile.js deleted file mode 100644 index 75c0c30e..00000000 --- a/newfile.js +++ /dev/null @@ -1,9 +0,0 @@ -// include node fs module -var fs = require('fs'); -var data ='Learn Node FS module'; - -// writeFile function with filename, content and callback function -fs.writeFile('newfile.txt', data, function (err) { - if (err) throw err; - console.log('File is created successfully.'); -}); diff --git a/testfile.py b/testfile.py index f2e78f78..3d72a901 100644 --- a/testfile.py +++ b/testfile.py @@ -1,11 +1,8 @@ # Python Program to calculate the square root - # Note: change this value for a different result num = 8 # To take the input from the user #num = float(input('Enter a number: ')) - num_sqrt = num ** 0.5 -prin('The square root of %0.3f is %0.3f'%(num ,num_sqrt)) - +print'The square root of %0.3f is %0.3f'%(num ,num_sqrt))