TSMC to Lose 2nm Orders? NVIDIA and Qualcomm Reportedly Mull to Team up with Samsung | TrendForce News /u/trendyplanner Android

TSMC to Lose 2nm Orders? NVIDIA and Qualcomm Reportedly Mull to Team up with Samsung | TrendForce News /u/trendyplanner Android

TSMC to Lose 2nm Orders? NVIDIA and Qualcomm Reportedly Mull to Team up with Samsung | TrendForce News /u/trendyplanner Android

TSMC to Lose 2nm Orders? NVIDIA and Qualcomm Reportedly Mull to Team up with Samsung | TrendForce News submitted by /u/trendyplanner
[link] [comments]

​r/Android submitted by /u/trendyplanner [link] [comments] 

TSMC to Lose 2nm Orders? NVIDIA and Qualcomm Reportedly Mull to Team up with Samsung | TrendForce News submitted by /u/trendyplanner
[link] [comments]

  submitted by /u/trendyplanner [link] [comments]

Read more

Can’t figure out what im doing wrong /u/Beneficial-Part1930 Python Education

Can’t figure out what im doing wrong /u/Beneficial-Part1930 Python Education

I’ve been trying to get this concept of MyMagic8Ball to work, but it keeps saying something about +answer not being specified. Can someone please give me a example or a explatnation of what im doing wrong? code is below.

import random

ans1 = “Go for it!”

ans2 = “No way, Jose!”

ans3 = “I’m not sure. Ask me again.”

ans4 = “Fear of the unknown is what imprisons us.”

ans5 = “It would be madness to do that!”

ans6 = “Only you can save mankind!”

ans7 = “Makes no difference to me, do or don’t – whatever.”

ans8 = “Yes, I think on balance that is the right choice.”

anslist = [ans1, ans2, ans3, ans4, ans5, ans6, ans7, ans8]

print(“Welcome to MyMagic8Ball.”)

question = input(“Ask me for advice then press ENTER to shake me.n”)

print(“shaking …n” * 4)

answer = random.choice(anslist)

print(“My answer is: ” + answer)

submitted by /u/Beneficial-Part1930
[link] [comments]

​r/learnpython I’ve been trying to get this concept of MyMagic8Ball to work, but it keeps saying something about +answer not being specified. Can someone please give me a example or a explatnation of what im doing wrong? code is below. import random ans1 = “Go for it!” ans2 = “No way, Jose!” ans3 = “I’m not sure. Ask me again.” ans4 = “Fear of the unknown is what imprisons us.” ans5 = “It would be madness to do that!” ans6 = “Only you can save mankind!” ans7 = “Makes no difference to me, do or don’t – whatever.” ans8 = “Yes, I think on balance that is the right choice.” anslist = [ans1, ans2, ans3, ans4, ans5, ans6, ans7, ans8] print(“Welcome to MyMagic8Ball.”) question = input(“Ask me for advice then press ENTER to shake me.n”) print(“shaking …n” * 4) answer = random.choice(anslist) print(“My answer is: ” + answer) submitted by /u/Beneficial-Part1930 [link] [comments] 

I’ve been trying to get this concept of MyMagic8Ball to work, but it keeps saying something about +answer not being specified. Can someone please give me a example or a explatnation of what im doing wrong? code is below.

import random

ans1 = “Go for it!”

ans2 = “No way, Jose!”

ans3 = “I’m not sure. Ask me again.”

ans4 = “Fear of the unknown is what imprisons us.”

ans5 = “It would be madness to do that!”

ans6 = “Only you can save mankind!”

ans7 = “Makes no difference to me, do or don’t – whatever.”

ans8 = “Yes, I think on balance that is the right choice.”

anslist = [ans1, ans2, ans3, ans4, ans5, ans6, ans7, ans8]

print(“Welcome to MyMagic8Ball.”)

question = input(“Ask me for advice then press ENTER to shake me.n”)

print(“shaking …n” * 4)

answer = random.choice(anslist)

print(“My answer is: ” + answer)

submitted by /u/Beneficial-Part1930
[link] [comments]  I’ve been trying to get this concept of MyMagic8Ball to work, but it keeps saying something about +answer not being specified. Can someone please give me a example or a explatnation of what im doing wrong? code is below. import random ans1 = “Go for it!” ans2 = “No way, Jose!” ans3 = “I’m not sure. Ask me again.” ans4 = “Fear of the unknown is what imprisons us.” ans5 = “It would be madness to do that!” ans6 = “Only you can save mankind!” ans7 = “Makes no difference to me, do or don’t – whatever.” ans8 = “Yes, I think on balance that is the right choice.” anslist = [ans1, ans2, ans3, ans4, ans5, ans6, ans7, ans8] print(“Welcome to MyMagic8Ball.”) question = input(“Ask me for advice then press ENTER to shake me.n”) print(“shaking …n” * 4) answer = random.choice(anslist) print(“My answer is: ” + answer) submitted by /u/Beneficial-Part1930 [link] [comments]

Read more

Recommendations for AI Learning Resources (Books, Courses, or Tutorials) /u/blizzdiver Python Education

Recommendations for AI Learning Resources (Books, Courses, or Tutorials) /u/blizzdiver Python Education

Hello everyone!

I’ve recently started diving into AI with the “AI Python for Beginners” course from Deeplearning.ai, and I’m absolutely fascinated by the field. My main goal is to learn how to develop practical applications using various models via APIs.

To give a bit of context: • I come from an engineering background, which helps me grasp technical concepts quickly. • I’m currently pursuing a career in finance and am studying for CFA Level 3 alongside learning AI. It’s been a challenge, but I’m managing to balance both.

I’d greatly appreciate any recommendations for resources (free or paid) that could accelerate my learning—books, courses, tutorials, or even specific projects to practice on. If you have any tips for integrating this knowledge into finance applications, that would be a bonus!

Thanks in advance for your help!

submitted by /u/blizzdiver
[link] [comments]

​r/learnpython Hello everyone! I’ve recently started diving into AI with the “AI Python for Beginners” course from Deeplearning.ai, and I’m absolutely fascinated by the field. My main goal is to learn how to develop practical applications using various models via APIs. To give a bit of context: • I come from an engineering background, which helps me grasp technical concepts quickly. • I’m currently pursuing a career in finance and am studying for CFA Level 3 alongside learning AI. It’s been a challenge, but I’m managing to balance both. I’d greatly appreciate any recommendations for resources (free or paid) that could accelerate my learning—books, courses, tutorials, or even specific projects to practice on. If you have any tips for integrating this knowledge into finance applications, that would be a bonus! Thanks in advance for your help! submitted by /u/blizzdiver [link] [comments] 

Hello everyone!

I’ve recently started diving into AI with the “AI Python for Beginners” course from Deeplearning.ai, and I’m absolutely fascinated by the field. My main goal is to learn how to develop practical applications using various models via APIs.

To give a bit of context: • I come from an engineering background, which helps me grasp technical concepts quickly. • I’m currently pursuing a career in finance and am studying for CFA Level 3 alongside learning AI. It’s been a challenge, but I’m managing to balance both.

I’d greatly appreciate any recommendations for resources (free or paid) that could accelerate my learning—books, courses, tutorials, or even specific projects to practice on. If you have any tips for integrating this knowledge into finance applications, that would be a bonus!

Thanks in advance for your help!

submitted by /u/blizzdiver
[link] [comments]  Hello everyone! I’ve recently started diving into AI with the “AI Python for Beginners” course from Deeplearning.ai, and I’m absolutely fascinated by the field. My main goal is to learn how to develop practical applications using various models via APIs. To give a bit of context: • I come from an engineering background, which helps me grasp technical concepts quickly. • I’m currently pursuing a career in finance and am studying for CFA Level 3 alongside learning AI. It’s been a challenge, but I’m managing to balance both. I’d greatly appreciate any recommendations for resources (free or paid) that could accelerate my learning—books, courses, tutorials, or even specific projects to practice on. If you have any tips for integrating this knowledge into finance applications, that would be a bonus! Thanks in advance for your help! submitted by /u/blizzdiver [link] [comments]

Read more

Calling APscheduler during flask initiation /u/deepbuzz7 Python Education

Calling APscheduler during flask initiation /u/deepbuzz7 Python Education

Hi Everyone,

Asked this same question in r/flask as well

I am using apscheduler inside my flask application.

Note: I am not using FlaskAPScheduler(flask extension). I am using its standalone library(pip install APScheduler)

========Let me give the context of my application ======================

i am starting my scheduler in create_app() function in application/__init__.py file. My code looks something like this

inside statusPollingScheduler.py file

def getStatusUpdatePollingScheduler(): executors={ 'default':ThreadPoolExecutor(1) } scheduler = BackgroundScheduler(executors=executors) scheduler.add_job( controllerThread, 'interval', seconds=15, max_instances=1, coalesce=True, args=(60,) #(timeout,) ) return scheduler 

inside application/__init__.py file

def startPollingScheduler(): from .statusPollingScheduler import getStatusUpdatePollingScheduler sch=getStatusUpdatePollingScheduler() try: sch.start() applogger.info("Polling scheduler started at flask instance initiation") except Exception as e: applogger.error(f"Polling scheduler failed to start. Exception - {e}") def create_app(): app=Flask(__name__) applogger.info("Flask instance initiated") startPollingScheduler() return app 

FYI i am running the flask with below code in main.py outside the application module

from application import create_app app=create_app() if __name__=='__main__': app.run() 

=================MY ISSUE ===================

When I check the logs I see that Flask instance initiated and Polling scheduler started at flask instance initiation getting logged multiple times. Seems like my flask instance is getting restarted again and again as long as the apscheduler process is running. Now this is only happenning when I bring APscheduler in the picture. When I comment out the startPollingScheduler() function, flask does not get restarted repeateadly. I want to know the reason behind this.

Thanks

submitted by /u/deepbuzz7
[link] [comments]

​r/learnpython Hi Everyone, Asked this same question in r/flask as well I am using apscheduler inside my flask application. Note: I am not using Flask-APScheduler(flask extension). I am using its standalone library(pip install APScheduler) ========Let me give the context of my application ====================== i am starting my scheduler in create_app() function in application/__init__.py file. My code looks something like this inside statusPollingScheduler.py file def getStatusUpdatePollingScheduler(): executors={ ‘default’:ThreadPoolExecutor(1) } scheduler = BackgroundScheduler(executors=executors) scheduler.add_job( controllerThread, ‘interval’, seconds=15, max_instances=1, coalesce=True, args=(60,) #(timeout,) ) return scheduler inside application/__init__.py file def startPollingScheduler(): from .statusPollingScheduler import getStatusUpdatePollingScheduler sch=getStatusUpdatePollingScheduler() try: sch.start() applogger.info(“Polling scheduler started at flask instance initiation”) except Exception as e: applogger.error(f”Polling scheduler failed to start. Exception – {e}”) def create_app(): app=Flask(__name__) applogger.info(“Flask instance initiated”) startPollingScheduler() return app FYI i am running the flask with below code in main.py outside the application module from application import create_app app=create_app() if __name__==’__main__’: app.run() =================MY ISSUE =================== When I check the logs I see that Flask instance initiated and Polling scheduler started at flask instance initiation getting logged multiple times. Seems like my flask instance is getting restarted again and again as long as the apscheduler process is running. Now this is only happenning when I bring APscheduler in the picture. When I comment out the startPollingScheduler() function, flask does not get restarted repeateadly. I want to know the reason behind this. Thanks submitted by /u/deepbuzz7 [link] [comments] 

Hi Everyone,

Asked this same question in r/flask as well

I am using apscheduler inside my flask application.

Note: I am not using FlaskAPScheduler(flask extension). I am using its standalone library(pip install APScheduler)

========Let me give the context of my application ======================

i am starting my scheduler in create_app() function in application/__init__.py file. My code looks something like this

inside statusPollingScheduler.py file

def getStatusUpdatePollingScheduler(): executors={ 'default':ThreadPoolExecutor(1) } scheduler = BackgroundScheduler(executors=executors) scheduler.add_job( controllerThread, 'interval', seconds=15, max_instances=1, coalesce=True, args=(60,) #(timeout,) ) return scheduler 

inside application/__init__.py file

def startPollingScheduler(): from .statusPollingScheduler import getStatusUpdatePollingScheduler sch=getStatusUpdatePollingScheduler() try: sch.start() applogger.info("Polling scheduler started at flask instance initiation") except Exception as e: applogger.error(f"Polling scheduler failed to start. Exception - {e}") def create_app(): app=Flask(__name__) applogger.info("Flask instance initiated") startPollingScheduler() return app 

FYI i am running the flask with below code in main.py outside the application module

from application import create_app app=create_app() if __name__=='__main__': app.run() 

=================MY ISSUE ===================

When I check the logs I see that Flask instance initiated and Polling scheduler started at flask instance initiation getting logged multiple times. Seems like my flask instance is getting restarted again and again as long as the apscheduler process is running. Now this is only happenning when I bring APscheduler in the picture. When I comment out the startPollingScheduler() function, flask does not get restarted repeateadly. I want to know the reason behind this.

Thanks

submitted by /u/deepbuzz7
[link] [comments]  Hi Everyone, Asked this same question in r/flask as well I am using apscheduler inside my flask application. Note: I am not using Flask-APScheduler(flask extension). I am using its standalone library(pip install APScheduler) ========Let me give the context of my application ====================== i am starting my scheduler in create_app() function in application/__init__.py file. My code looks something like this inside statusPollingScheduler.py file def getStatusUpdatePollingScheduler(): executors={ ‘default’:ThreadPoolExecutor(1) } scheduler = BackgroundScheduler(executors=executors) scheduler.add_job( controllerThread, ‘interval’, seconds=15, max_instances=1, coalesce=True, args=(60,) #(timeout,) ) return scheduler inside application/__init__.py file def startPollingScheduler(): from .statusPollingScheduler import getStatusUpdatePollingScheduler sch=getStatusUpdatePollingScheduler() try: sch.start() applogger.info(“Polling scheduler started at flask instance initiation”) except Exception as e: applogger.error(f”Polling scheduler failed to start. Exception – {e}”) def create_app(): app=Flask(__name__) applogger.info(“Flask instance initiated”) startPollingScheduler() return app FYI i am running the flask with below code in main.py outside the application module from application import create_app app=create_app() if __name__==’__main__’: app.run() =================MY ISSUE =================== When I check the logs I see that Flask instance initiated and Polling scheduler started at flask instance initiation getting logged multiple times. Seems like my flask instance is getting restarted again and again as long as the apscheduler process is running. Now this is only happenning when I bring APscheduler in the picture. When I comment out the startPollingScheduler() function, flask does not get restarted repeateadly. I want to know the reason behind this. Thanks submitted by /u/deepbuzz7 [link] [comments]

Read more

Please help me like Python /u/gofeedthebears Python Education

Please help me like Python /u/gofeedthebears Python Education

I need to use Python, and I hate everything about it. And considering, that it is such a popular language, there’s obviously something I don’t understand. Please point me at some resources, which help me understand logic behind Python. For C++, such a resource was “Design and Evolution of C++”. It reconciled me with C++.

So far, it looks like it’s a language, that tries to be intuitive, but ends up being awfully confusing. I don’t mind investing some time upfront in learning basic concepts, but after that I expect everything to make sense. Contrary to that, it feels like you can, kind of, start writing code in Python without knowing anything, but it never gets easy. Consider such a simple thing as listing a class data member:

class Foo: x 

It seems, depending on whether you assign a value to it or not, or provide a type annotation or not, or whether it’s in a dataclass or not, it’s quite different things that you’re doing. Personally, I think it’s insane.

I like C, I like Haskell, and I’ve been programming my entire career in C++. C++ is complicated, and sometimes looks kind of ugly, but at least I see the logic behind it, given historical context and everything.

I don’t see any logic behing Python – it’s just plain ugly, to me.

submitted by /u/gofeedthebears
[link] [comments]

​r/learnpython I need to use Python, and I hate everything about it. And considering, that it is such a popular language, there’s obviously something I don’t understand. Please point me at some resources, which help me understand logic behind Python. For C++, such a resource was “Design and Evolution of C++”. It reconciled me with C++. So far, it looks like it’s a language, that tries to be intuitive, but ends up being awfully confusing. I don’t mind investing some time upfront in learning basic concepts, but after that I expect everything to make sense. Contrary to that, it feels like you can, kind of, start writing code in Python without knowing anything, but it never gets easy. Consider such a simple thing as listing a class data member: class Foo: x It seems, depending on whether you assign a value to it or not, or provide a type annotation or not, or whether it’s in a dataclass or not, it’s quite different things that you’re doing. Personally, I think it’s insane. I like C, I like Haskell, and I’ve been programming my entire career in C++. C++ is complicated, and sometimes looks kind of ugly, but at least I see the logic behind it, given historical context and everything. I don’t see any logic behing Python – it’s just plain ugly, to me. submitted by /u/gofeedthebears [link] [comments] 

I need to use Python, and I hate everything about it. And considering, that it is such a popular language, there’s obviously something I don’t understand. Please point me at some resources, which help me understand logic behind Python. For C++, such a resource was “Design and Evolution of C++”. It reconciled me with C++.

So far, it looks like it’s a language, that tries to be intuitive, but ends up being awfully confusing. I don’t mind investing some time upfront in learning basic concepts, but after that I expect everything to make sense. Contrary to that, it feels like you can, kind of, start writing code in Python without knowing anything, but it never gets easy. Consider such a simple thing as listing a class data member:

class Foo: x 

It seems, depending on whether you assign a value to it or not, or provide a type annotation or not, or whether it’s in a dataclass or not, it’s quite different things that you’re doing. Personally, I think it’s insane.

I like C, I like Haskell, and I’ve been programming my entire career in C++. C++ is complicated, and sometimes looks kind of ugly, but at least I see the logic behind it, given historical context and everything.

I don’t see any logic behing Python – it’s just plain ugly, to me.

submitted by /u/gofeedthebears
[link] [comments]  I need to use Python, and I hate everything about it. And considering, that it is such a popular language, there’s obviously something I don’t understand. Please point me at some resources, which help me understand logic behind Python. For C++, such a resource was “Design and Evolution of C++”. It reconciled me with C++. So far, it looks like it’s a language, that tries to be intuitive, but ends up being awfully confusing. I don’t mind investing some time upfront in learning basic concepts, but after that I expect everything to make sense. Contrary to that, it feels like you can, kind of, start writing code in Python without knowing anything, but it never gets easy. Consider such a simple thing as listing a class data member: class Foo: x It seems, depending on whether you assign a value to it or not, or provide a type annotation or not, or whether it’s in a dataclass or not, it’s quite different things that you’re doing. Personally, I think it’s insane. I like C, I like Haskell, and I’ve been programming my entire career in C++. C++ is complicated, and sometimes looks kind of ugly, but at least I see the logic behind it, given historical context and everything. I don’t see any logic behing Python – it’s just plain ugly, to me. submitted by /u/gofeedthebears [link] [comments]

Read more

[WinError 2] The system cannot find the file specified, have python installed and python exe added to path /u/sqqlbh_7823 Python Education

[WinError 2] The system cannot find the file specified, have python installed and python exe added to path /u/sqqlbh_7823 Python Education

sublime text is showing me this error even though i have tried doing reinstalling python and sublime text.

– Full error:

[WinError 2] The system cannot find the file specified

[cmd: [‘python3’, ‘-u’, ‘C:\Users\myusername\Desktop\python_work\hello_world.py’]]

[dir: C:UsersmyusernameDesktoppython_work]

[path: C:Program Files (x86)Common FilesIntelShared FilescppbinIntel64;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;C:msys64mingw64bin;C:Program Filesdotnet;C:ProgramDatachocolateybin;;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:UsersmyusernameAppDataLocalProgramsPythonPython313Scripts;C:UsersmyusernameAppDataLocalProgramsPythonPython313;C:PythonPython312Scripts;C:PythonPython312;C:UsersmyusernameAppDataLocalProgramsPythonLauncher;C:Usersmyusername.svmbin;C:Usersmyusername.svmshims;C:UsersmyusernameAppDataLocalMicrosoftWindowsApps;;C:UsersmyusernameAppDataLocalProgramsMicrosoft VS Codebin;C:Usersmyusername.dotnettools;C:Usersmyusername.dotnettools;C:Panda3D-1.10.15-x64python;C:Panda3D-1.10.15-x64pythonScripts;C:Panda3D-1.10.15-x64bin]

[Finished]

I was following a crash course book for learning python, everything was working fine until i ran into a problem with importing modules and reinstalled python.

submitted by /u/sqqlbh_7823
[link] [comments]

​r/learnpython sublime text is showing me this error even though i have tried doing reinstalling python and sublime text. – Full error: [WinError 2] The system cannot find the file specified [cmd: [‘python3’, ‘-u’, ‘C:\Users\myusername\Desktop\python_work\hello_world.py’]] [dir: C:UsersmyusernameDesktoppython_work] [path: C:Program Files (x86)Common FilesIntelShared FilescppbinIntel64;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;C:msys64mingw64bin;C:Program Filesdotnet;C:ProgramDatachocolateybin;;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:UsersmyusernameAppDataLocalProgramsPythonPython313Scripts;C:UsersmyusernameAppDataLocalProgramsPythonPython313;C:PythonPython312Scripts;C:PythonPython312;C:UsersmyusernameAppDataLocalProgramsPythonLauncher;C:Usersmyusername.svmbin;C:Usersmyusername.svmshims;C:UsersmyusernameAppDataLocalMicrosoftWindowsApps;;C:UsersmyusernameAppDataLocalProgramsMicrosoft VS Codebin;C:Usersmyusername.dotnettools;C:Usersmyusername.dotnettools;C:Panda3D-1.10.15-x64python;C:Panda3D-1.10.15-x64pythonScripts;C:Panda3D-1.10.15-x64bin] [Finished] I was following a crash course book for learning python, everything was working fine until i ran into a problem with importing modules and reinstalled python. submitted by /u/sqqlbh_7823 [link] [comments] 

sublime text is showing me this error even though i have tried doing reinstalling python and sublime text.

– Full error:

[WinError 2] The system cannot find the file specified

[cmd: [‘python3’, ‘-u’, ‘C:\Users\myusername\Desktop\python_work\hello_world.py’]]

[dir: C:UsersmyusernameDesktoppython_work]

[path: C:Program Files (x86)Common FilesIntelShared FilescppbinIntel64;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;C:msys64mingw64bin;C:Program Filesdotnet;C:ProgramDatachocolateybin;;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:UsersmyusernameAppDataLocalProgramsPythonPython313Scripts;C:UsersmyusernameAppDataLocalProgramsPythonPython313;C:PythonPython312Scripts;C:PythonPython312;C:UsersmyusernameAppDataLocalProgramsPythonLauncher;C:Usersmyusername.svmbin;C:Usersmyusername.svmshims;C:UsersmyusernameAppDataLocalMicrosoftWindowsApps;;C:UsersmyusernameAppDataLocalProgramsMicrosoft VS Codebin;C:Usersmyusername.dotnettools;C:Usersmyusername.dotnettools;C:Panda3D-1.10.15-x64python;C:Panda3D-1.10.15-x64pythonScripts;C:Panda3D-1.10.15-x64bin]

[Finished]

I was following a crash course book for learning python, everything was working fine until i ran into a problem with importing modules and reinstalled python.

submitted by /u/sqqlbh_7823
[link] [comments]  sublime text is showing me this error even though i have tried doing reinstalling python and sublime text. – Full error: [WinError 2] The system cannot find the file specified [cmd: [‘python3’, ‘-u’, ‘C:\Users\myusername\Desktop\python_work\hello_world.py’]] [dir: C:UsersmyusernameDesktoppython_work] [path: C:Program Files (x86)Common FilesIntelShared FilescppbinIntel64;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;C:msys64mingw64bin;C:Program Filesdotnet;C:ProgramDatachocolateybin;;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:UsersmyusernameAppDataLocalProgramsPythonPython313Scripts;C:UsersmyusernameAppDataLocalProgramsPythonPython313;C:PythonPython312Scripts;C:PythonPython312;C:UsersmyusernameAppDataLocalProgramsPythonLauncher;C:Usersmyusername.svmbin;C:Usersmyusername.svmshims;C:UsersmyusernameAppDataLocalMicrosoftWindowsApps;;C:UsersmyusernameAppDataLocalProgramsMicrosoft VS Codebin;C:Usersmyusername.dotnettools;C:Usersmyusername.dotnettools;C:Panda3D-1.10.15-x64python;C:Panda3D-1.10.15-x64pythonScripts;C:Panda3D-1.10.15-x64bin] [Finished] I was following a crash course book for learning python, everything was working fine until i ran into a problem with importing modules and reinstalled python. submitted by /u/sqqlbh_7823 [link] [comments]

Read more

How can I understand loops I’m frustrated /u/Longjumping_Peak_840 Python Education

How can I understand loops I’m frustrated /u/Longjumping_Peak_840 Python Education

I know basics of python and can code well but sucks loops and developing logic about it idk what but it’s doesn’t make sense to me practiced some questions. My pratical examination went bad because of loops i have 2 days for my semester exam how can I understand fully it because it’s next loops are very much c++

submitted by /u/Longjumping_Peak_840
[link] [comments]

​r/learnpython I know basics of python and can code well but sucks loops and developing logic about it idk what but it’s doesn’t make sense to me practiced some questions. My pratical examination went bad because of loops i have 2 days for my semester exam how can I understand fully it because it’s next loops are very much c++ submitted by /u/Longjumping_Peak_840 [link] [comments] 

I know basics of python and can code well but sucks loops and developing logic about it idk what but it’s doesn’t make sense to me practiced some questions. My pratical examination went bad because of loops i have 2 days for my semester exam how can I understand fully it because it’s next loops are very much c++

submitted by /u/Longjumping_Peak_840
[link] [comments]  I know basics of python and can code well but sucks loops and developing logic about it idk what but it’s doesn’t make sense to me practiced some questions. My pratical examination went bad because of loops i have 2 days for my semester exam how can I understand fully it because it’s next loops are very much c++ submitted by /u/Longjumping_Peak_840 [link] [comments]

Read more

YFinance Error Help /u/Old-Course8991 Python Education

YFinance Error Help /u/Old-Course8991 Python Education

Here’s my code to get NASDAQ stock prices for a specific date-

—————

import yfinance as yf

import pandas as pd

def load_tickers_from_file(file_path):

“””

Load a list of tickers from a CSV file.

Assumes the file has a column named ‘Ticker’.

“””

try:

# Load the CSV file

df = pd.read_csv(file_path)

# Check if the ‘Ticker’ column exists

if ‘Ticker’ not in df.columns:

print(“Error: The CSV file does not contain a ‘Ticker’ column.”)

return []

# Return the list of tickers

return df[‘Ticker’].tolist()

except Exception as e:

print(f”Error reading the file: {e}”)

return []

def get_stock_data(ticker, date):

“””

Fetch stock data for a specific ticker on a specific date.

“””

stock_data = yf.download(ticker, start=date, end=date)

# Check if data exists for the given date

if stock_data.empty:

print(f”No data available for {ticker} on {date}.”)

else:

# Return the stock data for the given date

return stock_data

# Example usage: Retrieve stock data for all NASDAQ tickers from a CSV file on a specific date

file_path = r”C:UsersUserDesktopTradingnasdaq.csv” # Replace with the path to your CSV file

date = “2024-12-01” # Replace with your desired date (in format YYYY-MM-DD)

# Load tickers from the CSV file

nasdaq_tickers = load_tickers_from_file(file_path)

if nasdaq_tickers:

# Loop through each ticker and fetch its stock data for the given date

for ticker in nasdaq_tickers:

print(f”Fetching data for {ticker} on {date}…”)

stock_data = get_stock_data(ticker, date)

if stock_data is not None:

print(stock_data)

print(“n”) # Add a newline between results

else:

print(“No tickers found in the CSV file.”)

——————-

This is the error –

——————-

Fetching data for A on 2024-12-01…

[*********************100%***********************] 1 of 1 completed

1 Failed download:

[‘A’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’)

No data available for A on 2024-12-01.

Fetching data for AA on 2024-12-01…

[*********************100%***********************] 1 of 1 completed

1 Failed download:

[‘AA’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’)

No data available for AA on 2024-12-01.

Fetching data for AACG on 2024-12-01…

[*********************100%***********************] 1 of 1 completed

1 Failed download:

[‘AACG’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’)

No data available for AACG on 2024-12-01.

Fetching data for AACT on 2024-12-01…

[*********************100%***********************] 1 of 1 completed

…. and so on.

———————————-

What am I doing wrong? Any help would be appreciated.

Thanks

submitted by /u/Old-Course8991
[link] [comments]

​r/learnpython Here’s my code to get NASDAQ stock prices for a specific date- ————— import yfinance as yf import pandas as pd def load_tickers_from_file(file_path): “”” Load a list of tickers from a CSV file. Assumes the file has a column named ‘Ticker’. “”” try: # Load the CSV file df = pd.read_csv(file_path) # Check if the ‘Ticker’ column exists if ‘Ticker’ not in df.columns: print(“Error: The CSV file does not contain a ‘Ticker’ column.”) return [] # Return the list of tickers return df[‘Ticker’].tolist() except Exception as e: print(f”Error reading the file: {e}”) return [] def get_stock_data(ticker, date): “”” Fetch stock data for a specific ticker on a specific date. “”” stock_data = yf.download(ticker, start=date, end=date) # Check if data exists for the given date if stock_data.empty: print(f”No data available for {ticker} on {date}.”) else: # Return the stock data for the given date return stock_data # Example usage: Retrieve stock data for all NASDAQ tickers from a CSV file on a specific date file_path = r”C:UsersUserDesktopTradingnasdaq.csv” # Replace with the path to your CSV file date = “2024-12-01″ # Replace with your desired date (in format YYYY-MM-DD) # Load tickers from the CSV file nasdaq_tickers = load_tickers_from_file(file_path) if nasdaq_tickers: # Loop through each ticker and fetch its stock data for the given date for ticker in nasdaq_tickers: print(f”Fetching data for {ticker} on {date}…”) stock_data = get_stock_data(ticker, date) if stock_data is not None: print(stock_data) print(“n”) # Add a newline between results else: print(“No tickers found in the CSV file.”) ——————- This is the error – ——————- Fetching data for A on 2024-12-01… [*********************100%***********************] 1 of 1 completed 1 Failed download: [‘A’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’) No data available for A on 2024-12-01. Fetching data for AA on 2024-12-01… [*********************100%***********************] 1 of 1 completed 1 Failed download: [‘AA’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’) No data available for AA on 2024-12-01. Fetching data for AACG on 2024-12-01… [*********************100%***********************] 1 of 1 completed 1 Failed download: [‘AACG’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’) No data available for AACG on 2024-12-01. Fetching data for AACT on 2024-12-01… [*********************100%***********************] 1 of 1 completed …. and so on. ———————————- What am I doing wrong? Any help would be appreciated. Thanks submitted by /u/Old-Course8991 [link] [comments] 

Here’s my code to get NASDAQ stock prices for a specific date-

—————

import yfinance as yf

import pandas as pd

def load_tickers_from_file(file_path):

“””

Load a list of tickers from a CSV file.

Assumes the file has a column named ‘Ticker’.

“””

try:

# Load the CSV file

df = pd.read_csv(file_path)

# Check if the ‘Ticker’ column exists

if ‘Ticker’ not in df.columns:

print(“Error: The CSV file does not contain a ‘Ticker’ column.”)

return []

# Return the list of tickers

return df[‘Ticker’].tolist()

except Exception as e:

print(f”Error reading the file: {e}”)

return []

def get_stock_data(ticker, date):

“””

Fetch stock data for a specific ticker on a specific date.

“””

stock_data = yf.download(ticker, start=date, end=date)

# Check if data exists for the given date

if stock_data.empty:

print(f”No data available for {ticker} on {date}.”)

else:

# Return the stock data for the given date

return stock_data

# Example usage: Retrieve stock data for all NASDAQ tickers from a CSV file on a specific date

file_path = r”C:UsersUserDesktopTradingnasdaq.csv” # Replace with the path to your CSV file

date = “2024-12-01” # Replace with your desired date (in format YYYY-MM-DD)

# Load tickers from the CSV file

nasdaq_tickers = load_tickers_from_file(file_path)

if nasdaq_tickers:

# Loop through each ticker and fetch its stock data for the given date

for ticker in nasdaq_tickers:

print(f”Fetching data for {ticker} on {date}…”)

stock_data = get_stock_data(ticker, date)

if stock_data is not None:

print(stock_data)

print(“n”) # Add a newline between results

else:

print(“No tickers found in the CSV file.”)

——————-

This is the error –

——————-

Fetching data for A on 2024-12-01…

[*********************100%***********************] 1 of 1 completed

1 Failed download:

[‘A’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’)

No data available for A on 2024-12-01.

Fetching data for AA on 2024-12-01…

[*********************100%***********************] 1 of 1 completed

1 Failed download:

[‘AA’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’)

No data available for AA on 2024-12-01.

Fetching data for AACG on 2024-12-01…

[*********************100%***********************] 1 of 1 completed

1 Failed download:

[‘AACG’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’)

No data available for AACG on 2024-12-01.

Fetching data for AACT on 2024-12-01…

[*********************100%***********************] 1 of 1 completed

…. and so on.

———————————-

What am I doing wrong? Any help would be appreciated.

Thanks

submitted by /u/Old-Course8991
[link] [comments]  Here’s my code to get NASDAQ stock prices for a specific date- ————— import yfinance as yf import pandas as pd def load_tickers_from_file(file_path): “”” Load a list of tickers from a CSV file. Assumes the file has a column named ‘Ticker’. “”” try: # Load the CSV file df = pd.read_csv(file_path) # Check if the ‘Ticker’ column exists if ‘Ticker’ not in df.columns: print(“Error: The CSV file does not contain a ‘Ticker’ column.”) return [] # Return the list of tickers return df[‘Ticker’].tolist() except Exception as e: print(f”Error reading the file: {e}”) return [] def get_stock_data(ticker, date): “”” Fetch stock data for a specific ticker on a specific date. “”” stock_data = yf.download(ticker, start=date, end=date) # Check if data exists for the given date if stock_data.empty: print(f”No data available for {ticker} on {date}.”) else: # Return the stock data for the given date return stock_data # Example usage: Retrieve stock data for all NASDAQ tickers from a CSV file on a specific date file_path = r”C:UsersUserDesktopTradingnasdaq.csv” # Replace with the path to your CSV file date = “2024-12-01″ # Replace with your desired date (in format YYYY-MM-DD) # Load tickers from the CSV file nasdaq_tickers = load_tickers_from_file(file_path) if nasdaq_tickers: # Loop through each ticker and fetch its stock data for the given date for ticker in nasdaq_tickers: print(f”Fetching data for {ticker} on {date}…”) stock_data = get_stock_data(ticker, date) if stock_data is not None: print(stock_data) print(“n”) # Add a newline between results else: print(“No tickers found in the CSV file.”) ——————- This is the error – ——————- Fetching data for A on 2024-12-01… [*********************100%***********************] 1 of 1 completed 1 Failed download: [‘A’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’) No data available for A on 2024-12-01. Fetching data for AA on 2024-12-01… [*********************100%***********************] 1 of 1 completed 1 Failed download: [‘AA’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’) No data available for AA on 2024-12-01. Fetching data for AACG on 2024-12-01… [*********************100%***********************] 1 of 1 completed 1 Failed download: [‘AACG’]: YFPricesMissingError(‘$%ticker%: possibly delisted; no price data found (1d 2024-12-01 -> 2024-12-01)’) No data available for AACG on 2024-12-01. Fetching data for AACT on 2024-12-01… [*********************100%***********************] 1 of 1 completed …. and so on. ———————————- What am I doing wrong? Any help would be appreciated. Thanks submitted by /u/Old-Course8991 [link] [comments]

Read more