From dd75a492dcb140aeb3ca8828924bba1bf0839e8d Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 11 Mar 2024 17:21:55 +0000 Subject: [PATCH] testing --- newfile.js | 9 --------- testfile.py | 5 +---- 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 newfile.js 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))